Let's say I have the following jQuery:
$(this)
.doSomething
.doSomething
.selectSomething
.doSomething
.animate({
opacity: 1
}, 150)
.end()
.selectSomethingElse
.doSomething
I want this to be done. However, if the browser is IE, I do not want the executable part to be executed (due to the fact that IE was not able to animate objects with transparent PNG and kept PNG transparent).
Is there a way to preserve the pretty jquery syntax, but somehow skip the animation part based on some logic (in this case, for testing IE)?
source
share