0
jQueryを使用してアニメーション化したい。この数字をアニメーション化しようとしているとき、私の数字は3,450.86です。この数字は3,450でアニメートすることができます。jQuery number animation for 3,450.86
誰でも私を助けることができます。前もって感謝します。
jQueryを使用してアニメーション化したい。この数字をアニメーション化しようとしているとき、私の数字は3,450.86です。この数字は3,450でアニメートすることができます。jQuery number animation for 3,450.86
誰でも私を助けることができます。前もって感謝します。
あなたのコードにcounterUpライブラリを追加したい場合は、以下のコードを使用します。ありがとう。
jQuery(document).ready(function ($) {
$('span').counterUp({
delay: 10,
time: 1000
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://www.jqueryscript.net/demo/Animating-Numbers-Counting-Up-with-jQuery-Counter-Up-Plugin/jquery.counterup.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js"></script>
<span class=".integers">12345</span><br><br>
<span class=".floats">123.45</span><br><br>
<span class=".numbers-with-commas">12,345.00</span>