What I would like is very simple, but I am struggling with the syntax. When my element clicked, I would like my animate to be triggered and just after the .css(). Thank you in advance for your help. Cheers. Marc.
$('.content').click(function() {
$('#contentWrapper').animate({
"left": "-=475px"}, "fast"),
$(this).prev().css("display": "none");
});
Almost. You need to pass the
completeargument onanimatea function reference:(Also, your syntax for
csswas a bit off, you wanted,instead of:)