I have the following animation :
$(this).animate({
marginLeft: '-25%',
width: "50%",
minWidth: '400px',
maxWidth: '700px',
padding: 0,
minHeight: "580px",
height: 'auto',
borderRadius: 0
}, 1000, function () {
alert("I'm not being displayed!!");
$(this).addClass('completed');
});
All seems ok, but the callback is not been called in IE7 or 8. Why would this be? I removed the last comma after borderRadius which fixed the original animation problem, but now this is the new issue. Can anyone help?
EDIT:
The final alert with the punctuation error is not actually in the code, I have only placed it there to avoid people pointing out that the addClass part may have been the problem!