


Nasze ostatnie dokonania w liczbach!
function counter() { $('.count').each(function() { $(this).prop('Counter', 0).animate({ Counter: $(this).text() }, { duration: 4000, easing: 'swing', step: function(now) { $(this).text(Math.ceil(now)); } }); }); }
$(window).scroll(function() { var top_of_element = $(".licznik.not-scrolled").offset().top; var bottom_of_element = $(".licznik.not-scrolled").offset().top + $(".licznik.not-scrolled").outerHeight(); var bottom_of_screen = $(window).scrollTop() + window.innerHeight; var top_of_screen = $(window).scrollTop();
if((bottom_of_screen > top_of_element) && (top_of_screen < bottom_of_element)){ counter(); $(".licznik").removeClass("not-scrolled"); } }); var top_of_element = $(".licznik").offset().top; var bottom_of_element = $(".licznik").offset().top + $(".licznik").outerHeight(); var bottom_of_screen = $(window).scrollTop() + window.innerHeight; var top_of_screen = $(window).scrollTop(); if((bottom_of_screen > top_of_element) && (top_of_screen < bottom_of_element)){ counter(); $(".licznik").removeClass("not-scrolled"); }