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, 1 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index 692c346..845468c 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -8,7 +8,7 @@ SVG.extend(SVG.FX, {
// Add animation parameters and start animation
animate: function(duration, ease) {
/* ensure default duration and easing */
- duration = duration || 1000;
+ duration = duration == null ? 1000 : duration < 10 ? 10 : duration;
ease = ease || '<>';
var akeys, tkeys, tvalues,