anime icon indicating copy to clipboard operation
anime copied to clipboard

Question about animation.seek() controls and easing on every seek

Open thienedits opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

In the example https://animejs.com/documentation/#seekAnim, is there any way to add easing function after every seek? Seems the easing only applies at the end of the animation. I'm using this to animate while scrolling, but for dynamic scrolling it would be nice to be able to add easing after every scroll or seek call. Does this make sense?

Describe the solution you'd like A clear and concise description of what you want to happen.

This example is not using anime.js but wanted to show the desired scrolling effects. See how even after you do a scroll, the animation eases in. https://codepen.io/thienedits/pen/QWGwEqr

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

thienedits avatar Jan 31 '21 12:01 thienedits

Maybe this can help? https://github.com/juliangarnier/anime/issues/703

yellow1912 avatar Jul 18 '21 15:07 yellow1912