Bug Tracker

Ticket #9402 (closed enhancement: wontfix)

Opened 5 years ago

Last modified 4 years ago

Add Animate preCallback

Reported by: jquery@… Owned by:
Priority: low Milestone: 1.7
Component: effects Version: 1.6.1
Keywords: 1.7-discuss Cc:
Blocking: Blocked by:

Description (last modified by scott.gonzalez) (diff)

At the moment, .animate() only has one callback function that can be specified, which happens after the animation. I'll therefore call that the postCallback.

It'd be nice if jQuery had both a preCallback function and the postCallback function. The preCallback would be run just before the animation started. This is very useful if you're queueing animations up, and don't want to do something right now, but instead just before an animation which may be some way in the future, in the queue.

I propose therefore adding a preCallback and a postCallback function for .animate(), and aliasing the current callback to postCallback.

Change History

comment:1 Changed 5 years ago by john

  • Keywords 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:2 Changed 5 years ago by rwaldron

+0, Can be achieved with a minimal amount of code using the existing API

comment:3 Changed 5 years ago by jaubourg

  • Description modified (diff)

-1, .queue?

comment:4 Changed 5 years ago by timmywil

-1, queue

comment:5 Changed 5 years ago by timmywil

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to effects
  • Description modified (diff)

comment:6 Changed 5 years ago by dmethvin


comment:7 Changed 4 years ago by john

  • Description modified (diff)


comment:8 Changed 4 years ago by addyosmani


comment:9 Changed 4 years ago by ajpiano

  • Description modified (diff)


comment:10 Changed 4 years ago by scott.gonzalez

  • Description modified (diff)

-1, queue your function, we do this in jQuery UI without a problem

comment:11 Changed 4 years ago by rwaldron

  • Status changed from open to closed
  • Resolution set to wontfix
  • Milestone changed from 1.next to 1.7

Closing per 1.7 roadmap meeting resolution

Note: See TracTickets for help on using tickets.