-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Description
Hello,
I was wondering if there is a way to stop() the animation and set() property to a specific value.
This doesn't seem to work for me:
anim.set({ scrollLeft: value })
Ideally, once the play() function is called, continue from the set value. Is that even possible at the moment? Maybe there is another function or way around it.
Thank you.
P.S. I also trialed the seek() control function, but the issue here is that when you work with milliseconds/pixels, it doesn't get the correct value.
anim.seek(anim.duration * (el.scrollLeft / el.scrollWidth));
Metadata
Metadata
Assignees
Labels
No labels