UNPKG

@lagrange/animator

Version:

This library helps making parallax animations on scroll. It is built with performance in mind, as it doesn't need to relayout or paint to operate.

5 lines (4 loc) 146 B
export default function precision(value, smallest = 0.00001) { if (!value || (value < smallest && value > -smallest)) return 0; return value; }