summaryrefslogtreecommitdiffstats
path: root/dirty.html
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-06-29 09:18:54 +1000
committerSaivan <savian@me.com>2018-06-29 09:18:54 +1000
commit9e7d902339755b37ba228f837700c3886a337aa2 (patch)
treedc0e1690f5b2a13c397d0c77e43560172985eae9 /dirty.html
parent6ff9882c7c85fcd399b9c623f60d5d466cdbb99b (diff)
downloadsvg.js-9e7d902339755b37ba228f837700c3886a337aa2.tar.gz
svg.js-9e7d902339755b37ba228f837700c3886a337aa2.zip
Added a potential fix for the problem
Diffstat (limited to 'dirty.html')
-rw-r--r--dirty.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/dirty.html b/dirty.html
index 3eadb0e..5e6e6e1 100644
--- a/dirty.html
+++ b/dirty.html
@@ -218,11 +218,11 @@ a.timeline().source(() => {
})
-let obj = { rotate: 90, shear:2, origin: [600, 600], translate: [100, 100] }
+let obj = { rotate: 100, shear:2, origin: [600, 600], translate: [100, 100] }
a.clone() // startPosition
a.clone().transform(obj) // endPosition
-a.animate(new SVG.PID(0.1, 0.1)).transform(obj) // animation
+a.animate(new SVG.Spring(50, 30)).transform(obj) // animation
// Put an ellipse where we expect the object to be