This is my website: http://keironlowe.x10hosting.com/
I need to know how to make the red line slowly get longer when hovering over, and slowly shrink back to normal size afterwards using javascript or jQuery.
Could someone show me something to get started in the right direction?
You can use jQuery’s animate to do something to an element, which includes a duration parameter that defines how long it should take for the animation to complete. Then there’s the
hoverfunction which takes a set of functions. So this is the general idea:EDIT:
As far as your comment, if the code is in the
<HEAD>, you need to wrap the code indocument.ready: