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

Method startTimeline

examples/piu/timeline/main.js:34–40  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

32
33class TimelineBehavior extends Behavior {
34 startTimeline(container) {
35 let timeline = this.timeline;
36 timeline.seekTo(0);
37 container.duration = timeline.duration;
38 container.time = 0;
39 container.start();
40 }
41 onTimeChanged(container) {
42 let time = container.time;
43 this.timeline.seekTo(time);

Callers 3

onDisplayingMethod · 0.80
onDisplayingMethod · 0.80
onDisplayingMethod · 0.80

Calls 2

startMethod · 0.65
seekToMethod · 0.45

Tested by

no test coverage detected