Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Stop/pause an animation? #7

Open
drewbaker opened this issue Sep 23, 2021 · 0 comments
Open

Stop/pause an animation? #7

drewbaker opened this issue Sep 23, 2021 · 0 comments

Comments

@drewbaker
Copy link

This really seems to be the best library around to animate values, which in a Vue world, is actually really handy. Being able to animate values in JS and use the Vue templates to update the DOM is awesome.

But, I'd love to be able to cancel an animation once it has started. Perhaps like this?

const animation = av({
                from: 0,
                to: 100,
                duration: 10000,
                done: () => {
                    // Done
                },
            })

setTimeout(()=>{
     animation.pause()            
}, 500)            
@drewbaker drewbaker changed the title Stop/pause an animation Stop/pause an animation? Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant