Package Exports
- intertween
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (intertween) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
InterTween
A value interpolator between to any value with relative support
Minified&Gzipped ~2Kb, but it does almost anything related to interpolate values
CDN
# unpkg
https://unpkg.com/intertween
# npmcdn
https://npmcdn.com/intertween
# jsDelivr
https://cdn.jsdelivr.net/npm/intertween
Installing
$ npm install intertween
# or
$ yarn add intertween
Usage
var InterTween = require('intertween');
var value = InterTween(AnyValue1, AnyValue2);
loop_frame(function (elapsed) {
// elapsed should be between 0...1
value(elapsed) // InterpolatingValue
});