Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "tweeny", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A teeny tween class", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,7 +16,7 @@ # Tweeny | ||
var tween = new Tween({ | ||
from: {opacity: 0}, | ||
to: {opacity: 1}, | ||
from: { opacity: 0 }, | ||
to: { opacity: 1 }, | ||
duration: 1000, | ||
easing: easeInOutQuart, | ||
onUpdate(state) { | ||
onUpdate: function(state) { | ||
target.style.opacity = state.opacity | ||
@@ -29,1 +29,3 @@ }, | ||
``` | ||
For < IE 10 support, you'll need a `requestAnimationFrame` polyfill. |
7656
30