I have been trying to get this to work for a few days.
Basically i have a div Option1Div and a image with the id Option1, When you click the image it should change the div from Hidden to Visible, and change the width from 0 to 500px, but so far nothing happens.
$('#Option1').click(function() {
$('#Option1Div').animate({
opacity: 0.25,
width: "500 px"
}, 5000, function() {
// Animation complete.
});
});
You’re close. The CSS should be something like this:
and the jQuery
jsFiddle: http://jsfiddle.net/haHxC/