Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var flag = true,
- win = $(window).scrollTop(),
- blockTop = $(".support_month").offset().top;
- $(window).scrollTop(function () {
- if ( blockTop < win ) {
- while (flag) {
- $('.counter-number').each(function () {
- $(this).prop('Counter',0).animate({
- Counter: $(this).text()
- }, {
- duration: 1000,
- easing: 'linear',
- step: function (now) {
- $(this).text(Math.ceil(now));
- }
- });
- });
- flag = false;
- }
- }
- })
- ;
- AOS.init(
- {
- duration: 300
- });
- <div data-aos="fade-up"></div>
Add Comment
Please, Sign In to add comment