Comparing version 0.0.1 to 0.0.2
var Animoto = (function(opts){ | ||
console.log(opts) | ||
opts = opts || {} | ||
@@ -10,2 +9,3 @@ if (!opts.start && !opts.stop) { | ||
var stop = opts.stop; | ||
var fps = opts.fps || 60; | ||
var duration = opts.duration || 1000 | ||
@@ -61,2 +61,3 @@ var onTick = null; | ||
} else { | ||
clearInterval(interval) | ||
onDone() | ||
@@ -66,3 +67,5 @@ } | ||
window.requestAnimationFrame(step) | ||
var interval = setInterval(function(){ | ||
window.requestAnimationFrame(step) | ||
}, 1000/fps) | ||
} | ||
@@ -69,0 +72,0 @@ |
{ | ||
"name": "animoto", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Javascript utility for animations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
## Animoto | ||
> Javascript utility for animations | ||
![animoto demo](https://raw.github.com/joegesualdo/animoto/master/animoto-demo.gif) | ||
## Install | ||
@@ -5,0 +7,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10355
6
63
32