how can we add or remove existing anime attributes #888
-
since it not timeline it cant add or update existing divanimation |
Beta Was this translation helpful? Give feedback.
Answered by
juliangarnier
Apr 23, 2024
Replies: 2 comments 7 replies
-
@juliangarnier help bro :( i need to modify the anime do i need to recreate everytime something like this let divAnimation = anime({
targets: "panda",
translateX: 300,
elasticity: 200,
easing: 'easeInOutCubic',
autoplay: false,
opacity: 0.7
});
divAnimation = anime({
.....same above just add scale also target same
scale:[0,1],
}); is it possible to achieve without the timeline |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey sorry I don't really understand, what do you mean by "anime attributes" ? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to correctly update an animation when a new breakpoint is reached, you need a way to correctly cancel it and revert all the inline styles applied to the elements by the animation, then create the new animation with the breakpoint specific parameters. V3 doesn't have these features built-in, but it's going to be available in V4 (it's currently in the beta branch).