Difference between revisions of "Template:XJTU-China/header"

Line 86: Line 86:
 
         path: 'https://static.igem.org/mediawiki/2021/c/c5/T--XJTU-China--logoMoving.txt' // the path to the animation json
 
         path: 'https://static.igem.org/mediawiki/2021/c/c5/T--XJTU-China--logoMoving.txt' // the path to the animation json
 
     }
 
     }
     var animation = lottie.loadAnimation(animData);
+
     var logoAnim = lottie.loadAnimation(animData);
     animation.setSpeed(1.5);
+
     logoAnim.setSpeed(1.5);
     $(logo).hover(function () { animation.play(); },
+
     $(logo).hover(function () { logoAnim.play(); },
         function () { animation.pause(); })
+
         function () { logoAnim.pause(); })
 
</script>
 
</script>
  

Revision as of 11:10, 9 July 2021