diff --git a/examples/CssExample.html b/examples/CssExample.html index 329e092..24db126 100644 --- a/examples/CssExample.html +++ b/examples/CssExample.html @@ -5,7 +5,8 @@ - + + @@ -24,7 +25,7 @@ createjs.CSSPlugin.install(createjs.Tween); createjs.Ticker.setFPS(20); - var count = 200; + var count = 600; while (--count >= 0) { var box = document.createElement("div"); box.style.width = "6px"; diff --git a/examples/Example.html b/examples/Example.html index bf10571..d844579 100644 --- a/examples/Example.html +++ b/examples/Example.html @@ -6,6 +6,7 @@ + @@ -34,17 +35,17 @@ // set up a tween that tweens between scale 0.3 and 1 every second. createjs.Tween.get(circle,{loop:true}) .wait(1000) // wait for 1 second - .to({scaleX:0.2,scaleY:0.2},500) // jump to the new scale properties (default duration of 0) + .to({scaleX:0.2,scaleY:0.2}) // jump to the new scale properties (default duration of 0) .wait(1000) - .to({scaleX:1,scaleY:1},1000,createjs.Ease.bounceOut); // tween to scaleX/Y of 1 with ease bounce out + .to({scaleX:1,scaleY:1},1000,createjs.Ease.bounceOut) // tween to scaleX/Y of 1 with ease bounce out - // for demonstration purposes, try setting the override (fourth) parameter to true + // for demonstration purposes, try setting the override (third) parameter to true // this will override any previous tweens on the circle and replace them with this tween // resulting in the scaling tween above being cleared. - createjs.Tween.get(circle, {loop:true}, null, false) // get a new tween targeting circle + createjs.Tween.get(circle, {loop:true}, true) // get a new tween targeting circle .to({x:500,y:200,alpha:0.1},1000,createjs.Ease.get(1)) // tween x/y/alpha properties over 1s (1000ms) with ease out - .to({x:0},1000,createjs.Ease.get(-1)) // tween x over 1s with ease in - .to({y:300}) // jump to new y property (defaults to a duration of 0) + .to({x:0},1000,createjs.Ease.get(-1)) // tween x over 0.5s with ease in + .to({y:400}) // jump to new y property (defaults to a duration of 0) .call(console.log, ["wait..."], console) // call console.log("wait...") .wait(800) // wait for 0.8s .to({y:0,alpha:1},300) // tween y/alpha over 0.3s @@ -83,6 +84,6 @@