summaryrefslogtreecommitdiffstats
path: root/dirty.html
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-05 15:12:58 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-05 15:12:58 +0100
commit4049e2e6361d5ed9120f1edd02ef96ecc138fa6d (patch)
treeeeaee230519f755a6d8bd655e84fb08335da8bbd /dirty.html
parentedc9454ddf9a0fc29a81713b98e15ddfded04bf4 (diff)
downloadsvg.js-4049e2e6361d5ed9120f1edd02ef96ecc138fa6d.tar.gz
svg.js-4049e2e6361d5ed9120f1edd02ef96ecc138fa6d.zip
rework of classes, make events on every object possible
Diffstat (limited to 'dirty.html')
-rw-r--r--dirty.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/dirty.html b/dirty.html
index 9792d5e..23b2d6d 100644
--- a/dirty.html
+++ b/dirty.html
@@ -267,6 +267,9 @@ let moon = canvas.circle(50).center(1200, 300).attr({fill: '#ffa'})
earth.animate(10000).loop().ease('-')
.transform({rotate: 360, origin: [500, 300]}, true)
.transform({rotate: 720, origin: 'center'}, true)
+ .on('step', (e) => {
+ // console.log(e)
+ })
moon.animate(10000).loop().ease('-')
.transform({rotate: 360, origin: [500, 300]}, true)