Animation primitives for browsers
Install
$ yarn add tinyanims
Extremely tiny (279 bytes minified & gzip'd) library that exposes some basic methods for doing animations. Exports a global 'tinyanims' when dumped in your page as a script tag.
Requires requestAnimationFrame.
Docs
tween(callback, milliseconds = 500)
lerp(start, end, delta)
ease(delta)
Usage
; // log a bunch of numbers from -20 to 100 ; // create some text and do a repeating animation const txt = documentbody; ~ { ;} ;