Skip to content

Pause() and get the current property value(s) #681

@stepanjakl

Description

@stepanjakl

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions