Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CouterUp
- $('.price span').each(function () {
- var size = $(this).text().split(".")[1] ? $(this).text().split(".")[1].length : 0;
- $(this).prop('Counter', 0).animate({
- Counter: $(this).text()
- }, {
- duration: 3000,
- step: function (func) {
- $(this).text(parseFloat(func).toFixed(size));
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement