jstween

JSTween library broken

谁说胖子不能爱 提交于 2019-12-12 01:09:30
问题 The JSTween library doesn't seem to perform a simple animation pulled from the library's tutorial. Using the following code, the alert box will show up after the allotted 1 second duration, but no animation will take place. I must have set up the library wrong somehow, but I can't see the problem. <html> <head> <style type="text/css"> #box { width: 16px; height: 16px; } </style> <script type="text/javascript" src="jquery-1.10.1.js"></script> <script type="text/javascript" src="jstween-1.1.js"

Countdown animation with EaselJs

▼魔方 西西 提交于 2019-12-02 13:28:32
问题 I am trying to simulate a countdown animation using easeljs. I have got an example of what it should look like. http://jsfiddle.net/eguneys/AeK28/ But it looks like a hack, is there a proper/better/flexible way to do this? To put it other way, how can i define a path, and draw that path with easeljs. This looks ugly: createjs.Tween.get(bar, {override: true}).to({x: 400}, 1500, createjs.linear) .call(function() { createjs.Tween.get(bar, {override: true}).to({y: 400}, 1500, createjs.linear)