12%
MIT
neglectedA basic animation spring

ReSpring

A basic animation spring

Installation

npm install --save re-spring

Example usage

  • RE
  • ML
let animation =
  Animation.spring
  from::10.0
  toValue::0.0
  onChange::(fun (value, _) => {
    CssStyleDeclarationRe.setProperty "top" (string_of_int (float_of_int value) ^ "px") "" style
  })
  ();

animation.start ();
967: syntax error, consider adding a `;' before