Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmeasday/interpolated-helper
https://github.com/tmeasday/interpolated-helper
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tmeasday/interpolated-helper
- Owner: tmeasday
- Created: 2014-05-30T00:38:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-12T06:45:19.000Z (about 10 years ago)
- Last Synced: 2024-10-25T18:58:37.924Z (3 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Interpolated Helper
Usage:
```
Template.foo.helper = animate(fn, options);
```Will return a new reactive function that will animate changes to the underlying `fn`.
Options include:
- `easing` - an easing function to use. :: [0,1] -> [0,1]. (See d3.easing)
- `interpolator` - an interpolator to use :: (old, new) -> ([0,1] -> intermediate value) (See d3.interpolate)
- `time` - the time to take to animate between value