I have an image, and when it freezes, I would like its width to increase with jQuery. I know how to do this, but now I would like to do it slower, maybe 500 milliseconds, and not instantly.
I know this should be pretty easy, I just don't know the syntax. How can this be achieved?
This is my current script:
$("#example").width("250");
EDIT: I ran into another problem. I created two scenarios, one to make the image larger and one to reduce its size. However, the script seems pretty buggy and non-smooth, and switches back and forth between large and small for no reason. I resize it using onmouseover and onmouseout.
//Bigger $("#example").animate({width: 250}, 200 ); //Smaller $("#example").animate({width: 200}, 200 );
source share