Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function() {
- $(".progress-bars .progress--bar").css("width", function(){
- return $(this).attr("data-length") + "%";
- });
- });
- $(window).scroll(function() {
- var wrapperTop = $('.progress-wrapper).offset().top;
- var windowBot = $(this).scrollTop() + $(this).height();
- if (windowBot > wrapperTop){
- //Ваша анимация
- $(this).off('scroll');
- }
- });
Add Comment
Please, Sign In to add comment