I am currently learning jQuery. I\'d like to know how to make an image slide in when you click on its edge, then click again and it slides away. Similar to this:
htt
In order to use the This will slide the div to 500px, which will take 5 seconds.animate()
function add a CSS class to the animate()
.
$('#mydiv').animate({
height: 500px
}, 5000, function() {
// Animation complete.
});