本文整理匯總了TypeScript中animejs.timeline函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript timeline函數的具體用法?TypeScript timeline怎麽用?TypeScript timeline使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了timeline函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: createFinishAnimation
private createFinishAnimation(): anime.AnimeTimelineInstance | null {
if (!(this.elem && this.elemBar)) return null
return anime
.timeline({
autoplay: false,
})
.add({
targets: this.elemBar,
strokeDashoffset: [anime.setDashoffset, 0],
easing: 'linear',
duration: 300,
})
.add({
targets: this.elem,
opacity: 0,
easing: 'linear',
duration: 300,
})
}
示例2: anime
duration: () => {
return 1000000000000;
},
update: callback,
complete: callback
})
const someNodes = document.querySelector('button');
const test3 = anime({
targets: someNodes,
top: "-5000000em"
})
const tl = anime.timeline({
loop: false,
direction: 'normal'
})
tl.add({
targets: ".tiny-divvy-div",
scale: 10000000
})
var path = anime.path('#motionPath path');
test1.play();
test2.reverse();
test3.pause();
tl.seek(4000);
tl.finished.then(() => {