Skip to content

joshnuss/svelte-animation-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svelte Animation Store

A store that is based on Svelte's tweened store, with some additional functionality:

  • pause(): freeze the store at the current value.
  • reset(): resets the store's value back to the last set point.
  • continue(): play on from a paused state.
  • reverse(): play in reverse.
  • replay(): go back to start, and play to last set point.
  • accelerate(speed): adjust the speed of the animation.

Functionality inherited from writable():

  • set(value): works the same as a writable store.
  • update(callback): works the same as a writable store.
  • subscribe(callback): works the same as a writable store.

License

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published