Skip to main content

Bug Tracker

Side navigation

#9402 closed enhancement (wontfix)

Opened May 22, 2011 07:24PM UTC

Closed June 07, 2011 06:53PM UTC

Add Animate preCallback

Reported by: jquery@game-point.net Owned by:
Priority: low Milestone: 1.7
Component: effects Version: 1.6.1
Keywords: 1.7-discuss Cc:
Blocked by: Blocking:
Description

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.

Attachments (0)
Change History (11)

Changed May 22, 2011 07:28PM UTC by john comment:1

keywords: → 1.7-discuss

Nominating ticket for 1.7 discussion.

Changed May 22, 2011 08:21PM UTC by rwaldron comment:2

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

Changed May 23, 2011 01:09AM UTC by jaubourg comment:3

description: 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.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.

-1, .queue?

Changed May 23, 2011 05:15AM UTC by timmywil comment:4

-1, queue

Changed May 24, 2011 12:40AM UTC by timmywil comment:5

component: unfiledeffects
description: 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.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.
priority: undecidedlow
status: newopen

Changed May 24, 2011 10:36PM UTC by dmethvin comment:6

-1

Changed June 03, 2011 02:12PM UTC by john comment:7

description: 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.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.

-1

Changed June 04, 2011 10:15PM UTC by addyosmani comment:8

-1

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

description: 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.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.

-1

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

description: 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.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.

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

Changed June 07, 2011 06:53PM UTC by rwaldron comment:11

milestone: 1.next1.7
resolution: → wontfix
status: openclosed

Closing per 1.7 roadmap meeting resolution