aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-06 10:16:31 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-06 10:16:31 +0200
commita19b4f1dfe06d70775a03ec5428b0423fbb46819 (patch)
tree7188532dac00b7ebc335738b8ad9e074fdea16ca /src/fx.js
parentf7b38e94a98082699cc0702f7dab420972881869 (diff)
downloadsvg.js-a19b4f1dfe06d70775a03ec5428b0423fbb46819.tar.gz
svg.js-a19b4f1dfe06d70775a03ec5428b0423fbb46819.zip
fix array values which were not animated (#698)
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fx.js b/src/fx.js
index 36535b1..4f2a9a9 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -750,6 +750,8 @@ SVG.MorphObj = SVG.invent({
create: function(from, to){
// prepare color for morphing
if(SVG.Color.isColor(to)) return new SVG.Color(from).morph(to)
+ // prepare value list for morphing
+ if(SVG.regex.delimiter.test(from)) return new SVG.Array(from).morph(to)
// prepare number for morphing
if(SVG.regex.numberAndUnit.test(to)) return new SVG.Number(from).morph(to)