lax.js icon indicating copy to clipboard operation
lax.js copied to clipboard

How to perform animation only once and until end position reached?

Open 0x7357 opened this issue 3 years ago • 3 comments

Is there any way to say "Hey, if you've reached your final position, please stay in that position"?

Something like a callback "onAnimationEnd(removeElement(self))"?

I'd love to get an answer.

Thanks

0x7357 avatar May 23 '22 12:05 0x7357

Do you have an example? The final position depends on your configuration.

alexfoxy avatar Jun 04 '22 14:06 alexfoxy

You scroll down and the elements animate. For example, they fly from the left to their final position. How can I disable the animation once the element has reached its final position for the first time? Actually, I want to disable the animations on elements that I have already scrolled over, so that now when I scroll up, they are immediately at their final position.

0x7357 avatar Jun 04 '22 14:06 0x7357

I would like to achieve the same

gvigroux avatar Sep 13 '23 18:09 gvigroux