Skip to main content

Bug Tracker

Side navigation

#9280 closed enhancement (fixed)

Opened May 13, 2011 11:35PM UTC

Closed September 19, 2011 08:08PM UTC

Last modified March 13, 2012 01:45PM UTC

Allow multiple effect queues for animate()

Reported by: gnarf Owned by: gnarf
Priority: blocker Milestone: 1.7
Component: effects Version: git
Keywords: 1.7-discuss Cc:
Blocked by: Blocking:
Description
animate()
currently has a
 queue 
option, but the only "useful" value it has
 false 
.

I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so:

$(".elems").animate( props, {
    queue: "second",
    duration: 250,
    callback: fn,
    easing: "swing"
}).dequeue("second");
Attachments (0)
Change History (16)

Changed May 17, 2011 08:17PM UTC by addyosmani comment:2

component: unfiledeffects
owner: → gnarf
priority: undecidedlow
status: newpending

Is this something that was submitted for the jQuery 1.7 Roadmap proposal?. It's still not too late to get the addition on there so that we can vote as to whether it should land.

Changed May 17, 2011 09:53PM UTC by gnarf comment:3

status: pendingnew

Replying to [comment:2 addyosmani]:

Is this something that was submitted for the jQuery 1.7 Roadmap proposal?. It's still not too late to get the addition on there so that we can vote as to whether it should land.

Yes - its on the proposal list already.

Changed May 20, 2011 02:56PM UTC by dmethvin comment:4

status: newopen

Changed May 22, 2011 05:31PM UTC by john comment:5

+1, Sounds great (and easy!) to me.

Changed May 22, 2011 07:27PM UTC by john comment:6

keywords: → 1.7-discuss

Nominating ticket for 1.7 discussion.

Changed May 22, 2011 08:43PM UTC by rwaldron comment:7

description: {{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}. \ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so: \ \ {{{ \ $(".elems").animate( props, { \ queue: "second", \ duration: 250, \ callback: fn, \ easing: "swing" \ }).dequeue("second"); \ }}}{{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}.\ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so:\ \ {{{\ $(".elems").animate( props, {\ queue: "second",\ duration: 250,\ callback: fn,\ easing: "swing"\ }).dequeue("second");\ }}}

+1,

Changed May 23, 2011 12:50AM UTC by jaubourg comment:8

+1,

Changed May 23, 2011 04:52AM UTC by timmywil comment:9

+1,

Changed May 24, 2011 09:56PM UTC by dmethvin comment:10

description: {{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}.\ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so:\ \ {{{\ $(".elems").animate( props, {\ queue: "second",\ duration: 250,\ callback: fn,\ easing: "swing"\ }).dequeue("second");\ }}}{{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}. \ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so: \ \ {{{ \ $(".elems").animate( props, { \ queue: "second", \ duration: 250, \ callback: fn, \ easing: "swing" \ }).dequeue("second"); \ }}}

+1, Seems like a useful and back-compat extension.

Changed June 05, 2011 10:04PM UTC by ajpiano comment:11

+1, Love it

Changed June 06, 2011 03:03PM UTC by scottgonzalez comment:12

description: {{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}. \ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so: \ \ {{{ \ $(".elems").animate( props, { \ queue: "second", \ duration: 250, \ callback: fn, \ easing: "swing" \ }).dequeue("second"); \ }}}{{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}.\ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so:\ \ {{{\ $(".elems").animate( props, {\ queue: "second",\ duration: 250,\ callback: fn,\ easing: "swing"\ }).dequeue("second");\ }}}

+1, seems useful and implementation is super small

Changed July 12, 2011 03:05PM UTC by dmethvin comment:13

description: {{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}.\ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so:\ \ {{{\ $(".elems").animate( props, {\ queue: "second",\ duration: 250,\ callback: fn,\ easing: "swing"\ }).dequeue("second");\ }}}{{{animate()}}} currently has a {{{ queue }}} option, but the only "useful" value it has {{{ false }}}. \ \ I would like to propose that we add support for passing a string, which when present would queue the animation in the specified queue like so: \ \ {{{ \ $(".elems").animate( props, { \ queue: "second", \ duration: 250, \ callback: fn, \ easing: "swing" \ }).dequeue("second"); \ }}}
milestone: 1.next1.7
priority: lowblocker

Changed September 12, 2011 02:47PM UTC by gnarf comment:14

Changed September 12, 2011 03:00PM UTC by gnarf comment:15

status: openassigned

Changed September 19, 2011 08:08PM UTC by Corey Frang comment:16

resolution: → fixed
status: assignedclosed

Landing pull request 496. 1.7 animate: allow named queues to be used by animate. Fixes #9280.

More Details:

Changeset: e4c48a34b4fe687d4a3b935b6c405f502dd0223e