I'm having difficulty getting another function to work after one has just completed. The first half of my code works, but the function afterwards doesn't. What am I doing wrong?
The HTML
<div id="feature">
<div id="open"></div>
</div>
The CSS
#feature {
position:relative;
width:100%;
height:450px;
}
#open {
position:relative;
width:100%;
height:200px;
background:red;
}
The jQuery
$('#open').click(function () {
$(this).animate({
height: 50
}, {
duration: 'slow'
}).css('overflow', 'visible'),
function () {
$('#open').animate({
height: 200
}, {
duration: 'slow'
})
};
// Animation complete.
});
A JS Fiddle.