Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimeJS Path Issue #959

Open
frontend-restack opened this issue Dec 23, 2024 · 1 comment
Open

AnimeJS Path Issue #959

frontend-restack opened this issue Dec 23, 2024 · 1 comment

Comments

@frontend-restack
Copy link

frontend-restack commented Dec 23, 2024

Describe the bug
I am using anime.js path module to animate a beam along a path, but for some reason the beam is miss positioned from the path while animating. Initial position (when not animating) of the beam overlaps the path but after animation its positioned incorrecly.

Expected behavior
The beam should overlap the path

Screenshots
Screenshot 2024-12-23 at 3 40 30 PM

Implementation

const path = anime.path('.path1');
const animation = anime({
  targets: '.beam1',
  translateX() {
    console.log(path('x'));
    return path('x');
  },
  translateY: path('y'),
  easing: 'easeOutQuad',
  duration: 1000,
  direction: 'reverse',
  loop: true,
});

Desktop (please complete the following information):

  • "animejs": "^3.2.2"
@juliangarnier
Copy link
Owner

Can you provide a live reproductive example of your issue? (codepen or other)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants