MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / startAnimation

Method startAnimation

examples/piu/bars/main.js:68–75  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

66 left:0, right:0, top:0, bottom:0, skin:whiteSkin,
67 Behavior: class extends Behavior {
68 startAnimation(container) {
69 this.timeline = (new Timeline)
70 .to(container.first.next, { y:application.height - ((application.height-120) >> 1) }, 500, Math.quadEaseOut, 0)
71 .to(container.first, { x:application.width }, 1000, Math.quadEaseOut, 0)
72 .to(container.last, { x:(application.width - 120) >> 1 }, 1000, Math.quadEaseOut, -1000)
73 container.duration = this.timeline.duration + 1000;
74 container.start();
75 }
76 onFinished(container) {
77 container.bubble("onStep");
78 }

Callers

nothing calls this directly

Calls 2

startMethod · 0.65
toMethod · 0.45

Tested by

no test coverage detected