Notorious_Creed Notorious_Creed - 4 months ago 10
jQuery Question

Increase width from 0 to a 100% with css or jquery

i want to increase my width from 0 to a 100.

I've tried this:

<script type="text/javascript">
$(document).ready(function(){
$("#underline").animate({width: '250px'});
};
</script>


To make it increase it's width but it won't work. I've also done some research too see if it's possible with css, but i keep ending up with tutorials on hover effects.

I would really appreciate if someone could help me with the problem.

Answer

Syntax error: Closing bracket missing for document.ready

JS:

   $(document).ready(function(){
        $("#underline").animate({width: '250px'});
    });

http://codepen.io/nagasai/pen/rLqqZE