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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -