Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).scroll(function() {
- if ($('#skills').hasClass('active')){
- jQuery('.skillbar').each(function(){
- jQuery(this).find('.skillbar-bar').animate({
- width:jQuery(this).attr('data-percent')
- },2000);
- });
- }else{
- jQuery('.skillbar').each(function(){
- jQuery(this).find('.skillbar-bar').animate({
- width:'0px'
- },2000);
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement