1.0.5 • Published 7 years ago

motion-tween-raf-engine v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

#Installation

$ npm install motion-tween-raf-engine --save

#Usage

Usage is very straight forward.

import { RAF } from "motion-tween-raf-engine";

const loop = new RAF(frameRate, (time, delta) => {
    // do something
}, autoStart)

loop.start()
loop.stop()
loop.resume()
loop.reset()
  • frameRate: from 1 to 60
  • callback: will receive time and delta
  • autoStart: defaults to true
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago