re-spring

0.3.0 • Public • Published

ReSpring

A basic animation spring

Installation

npm install --save re-spring

Example usage

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 ();

Package Sidebar

Install

npm i re-spring

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

4.54 kB

Total Files

6

Last publish

Collaborators

  • bloodyowl