diff --git a/src/misc/sigma.misc.animation.js b/src/misc/sigma.misc.animation.js
index <HASH>..<HASH> 100644
--- a/src/misc/sigma.misc.animation.js
+++ b/src/misc/sigma.misc.animation.js
@@ -84,7 +84,7 @@
 
     fn = function() {
       var coef,
-          t = (sigma.utils.dateNow() - start) / o.duration;
+          t = o.duration ? (sigma.utils.dateNow() - start) / o.duration : 1;
 
       // If the animation is over:
       if (t >= 1) {
minor fix for animations

Fixed a bug when the camera is animated with a duration of 0.