UNPKG

timaline

Version:

timaline is a requestAnimationFrame based tasks scheduler.

13 lines (11 loc) 320 B
const Timaline = require( 'timaline' ) const timeline = new Timaline() timeline .wait( 500 ) .set( function( infos ) { console.log( infos.keyframe.real + ' ≈ ' + infos.keyframe.forecast ) } ) .wait( 1000 ) .set( function( infos ) { console.log( infos.keyframe.real + ' ≈ ' + infos.keyframe.forecast ) } )