aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
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 1fcf4bc..fc05284 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -337,6 +337,8 @@ SVG.FX = SVG.invent({
// set/get the speed of the animation
, speed: function(spd){
+ if (spd === 0) return this.pause()
+
if (spd) {
this.spd = spd
return this.at(this.situation.reversed ? 1-this.pos : this.pos)