UNPKG

scrollscene

Version:

ScrollScene is an extra layer on top of ScrollMagic as well as using IntersectionObserver to achieve similar effects.

10 lines (9 loc) 230 B
/** * roundOff * @desc round a number off to nearest 2 decimal places * roundOff(5) => 5 * roundOff(100) => 100 * roundOff(0.23432) => 0.23 * roundOff(0.897) => 0.9 */ export declare const roundOff: (value: any) => number;