ライブラリ更新
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4085 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
6ea5440b1d
commit
dfa9733bf4
@ -2,10 +2,17 @@
|
||||
Animation Task Manager
|
||||
|
||||
Usage:
|
||||
window['piro.sakura.ne.jp'].animationManager.task(function() {
|
||||
// some animation task runned by interval
|
||||
return isFinish; // boolean
|
||||
});
|
||||
window['piro.sakura.ne.jp'].animationManager.addTask(
|
||||
function(aTime, aBeginningValue, aFinishValue, aDelay) {
|
||||
// some animation task runned by interval
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user