animate.css - Skillbar not loading Error message: Cannot read property 'top' of undefined -


i trying animate 'skillbar' using html, css, js, , animate.css. getting error:

error feedback: uncaught typeerror: cannot read property 'top' of undefined.

i using grid system rather bootstrap

var skillbartoppos = jquery('.skillbar').position().top;  jquery(document).scroll(function(){     var scrolled_val = $(document).scrolltop().valueof();      if(scrolled_val>skillbartoppos-250)          startanimation(); }); function startanimation(){      jquery('.skillbar').each(function(){         jquery(this).find('.skillbar-bar').animate({              width:jquery(this).attr('data-percent')         },6000);     }); }; 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -