js数字累加特效

// 特效demo

http://inorganik.github.io/countUp.js/

 

// js代码实现

var memberNumObj = element.find('.member-num-text')[0];
var memberNum = $scope.plan.memberNum;
var numAnim = new countUp(memberNumObj, (memberNum > 100 ? memberNum - 100 : 1), memberNum, 0, 1.5);
numAnim.start();

 

 

<script type="text/script" src="http://inorganik.github.io/countUp.js/countUp.js"></script><script type="text/script">// <![CDATA[ var demo = new countUp("myTargetElement", 24.02, 94.62, 0, 2); demo.start(); // ]]></script>

你可能感兴趣的:(每天进步一点点,学习永无止境,众观千象,effect)