Wednesday, 25 July 2012

How slow is jQuery "slow"?

jQuery animation methods like fadeIn() allows you to specify whether you want to do the animation 'slow' or 'fast'. In fact durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.

No comments:

Post a Comment