light-trails
v0.8.0
Published
The extendable TypeScript animation library
Downloads
11
Readme
Lighting
The extendable animation library with timeline inspector.
yarn add light-trails
npm install light-trails
Examples
import { lightTrails, trail, fromTo, delay, val } from 'light-trails'
const elementTrail = trail('#my-element', [
fromTo({ opacity: val(0, 1) }, 400),
delay(1000),
fromTo({ backgroundColor: color('#FF0000', '#00FF00') }, 400),
])
lightTrails(elementTrail).play()