update
This commit is contained in:
14
public/template_5/js/counter.js
Normal file
14
public/template_5/js/counter.js
Normal file
@ -0,0 +1,14 @@
|
||||
$(document).ready(function () {
|
||||
$('.counter').each(function () {
|
||||
$(this).prop('Counter', 0).animate({
|
||||
Counter: $(this).text()
|
||||
}, {
|
||||
duration: 4000,
|
||||
easing: 'swing',
|
||||
|
||||
step: function (now) {
|
||||
$(this).text(Math.ceil(now));
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user