수치 동적 변화 애니메이션

1061 단어

<span style="color:#0000ff;">function</span><span style="color:#000000;"> magic_number(count) { </span><span style="color:#0000ff;">var</span> num = $('#number'),start = 0<span style="color:#000000;">; num.animate({count: count}, { duration: </span>1500<span style="color:#000000;">, step: </span><span style="color:#0000ff;">function</span><span style="color:#000000;">() { </span><span style="color:#0000ff;">if</span>(start <=<span style="color:#000000;"> count){ num.text(parseInt(start</span>++<span style="color:#000000;">)); }; } }); }; magic_number(</span>100<span style="color:#000000;">); </span>

 
다음으로 전송:https://www.cnblogs.com/hmycheryl/p/9042242.html

좋은 웹페이지 즐겨찾기