Skip to main content

Bug Tracker

Side navigation

#3444 closed enhancement (duplicate)

Opened October 04, 2008 12:52PM UTC

Closed October 18, 2008 11:29PM UTC

Allow speed of 0 in animate to be instant

Reported by: jonahfox Owned by: flesler
Priority: minor Milestone: 1.3
Component: effects Version: 1.2.6
Keywords: css animate Cc:
Blocked by: Blocking:

It would be really useful if $.fn.animate understood speed of 0 as

being instant (rather than null => default speed)

I currently use the following to achieve this :

$.fn.animate2 = function(css, speed, fn) {

if(speed === 0) {



} else {

this.animate(css, speed, fn)



It is also in the best interest of accessibility to enable a way to

disable all animations across the board, so putting this somewhere in core animation functions to recognize a 0 speed animation as synonym for .css would help in those efforts, should they exist.

see discussion here

Attachments (0)
Change History (2)

Changed October 04, 2008 04:08PM UTC by flesler comment:1

component: unfilledfx
need: ReviewPatch
status: newassigned

Changed October 18, 2008 11:29PM UTC by flesler comment:2

resolution: → duplicate
status: assignedclosed

Oops.. I made a search inside Trac and couldn't find this ticket, so I created a new one.

Duplicate of #3495.