From 39cd3a29e2c8dc494a7cffa610c33f5b62995841 Mon Sep 17 00:00:00 2001 From: Saivan Date: Fri, 1 Jun 2018 21:48:09 +1000 Subject: The timelines continue function requests a step animation frame --- dirty.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dirty.html') diff --git a/dirty.html b/dirty.html index f6ff65d..09438cb 100644 --- a/dirty.html +++ b/dirty.html @@ -97,7 +97,7 @@ function getColor(t) { SVG.defaults.timeline.ease = '-' var r = new SVG.Runner(1000) -var t = new SVG.Timeline().pause() +var t = new SVG.Timeline() r.schedule(t, 200) .animate(500).loop(5, true, 100) .animate(600, 200, 'absolute') @@ -116,8 +116,8 @@ schedule.forEach((s, i) => { s.runner.element(rect) .attr('fill', getColor(i*0.1)) - if (i===0) - s.runner.during(console.log) + // if (i===0) + // s.runner.during(console.log) }) var mover = canvas.line(100, 100, 100, 300).attr('stroke', 'black').clone() @@ -127,7 +127,7 @@ t.on('time', function (e) { mover.x(100 + e.detail/10) }) -t.play() + console.log(schedule) // var bla = SVG('').size(0, 0).move(200, 200).addTo('svg') -- cgit v1.2.3