ライブラリ更新

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4085 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-08 10:11:37 +00:00
parent 6ea5440b1d
commit dfa9733bf4

View File

@ -2,10 +2,17 @@
Animation Task Manager
Usage:
window['piro.sakura.ne.jp'].animationManager.task(function() {
window['piro.sakura.ne.jp'].animationManager.addTask(
function(aTime, aBeginningValue, aFinishValue, aDelay) {
// some animation task runned by interval
return isFinish; // boolean
});
var current = someEasingFunction(aTime, aBeginningValue, aFinishValue, aDelay);
target.style.left = current+'px';
return aTime > aDelay; // return true if the animation finished.
},
100, // beginning
200, // finish
250 // msec
);
// stop all
window['piro.sakura.ne.jp'].animationManager.stop();