You are on page 1of 4

jQuery Animation

jQuery Methods for Animation

animate( properties, [duration,] [easing,] [complete] )


Properties: map of css properties Duration: string or number determining how long the animation will run Easing: string indicating which easing function to use Complete: function to call once the animation is complete css(propertyName, value) or css(map)

jQuery Methods for Animation

fadeIn([duration]) fadeOut([duration])

IE Limitation with PNG Images

jQuery uses the filter property that makes the transparency of PNG behave differently (transparency becomes black borders)
Workaround would be to manipulate the filter of the image but it only works on images with transparency. Translucent images will remain a problem. Better solution is to use GIF images

You might also like