Skip to main content

Bug Tracker

Side navigation

#3519 closed enhancement (worksforme)

Opened October 24, 2008 12:15PM UTC

Closed August 12, 2010 12:49AM UTC

Single callback after an animation with multiple elements

Reported by: jazzyjay Owned by:
Priority: minor Milestone: 1.3
Component: effects Version: 1.2.6
Keywords: animate callback Cc: jazzyjay, flesler
Blocked by: Blocking:
Description

It would be useful to have a single callback option after an animation. This would be an alternative to current callback which is executed pearch animated element.

Single callback would be executed only once after elements have been animated.

Jay

Attachments (0)
Change History (5)

Changed October 24, 2008 10:06PM UTC by flesler comment:1

cc: → jazzyjay, flesler
component: eventfx
need: ReviewTest Case
owner: brandon

Can you provide 1 or more situations where this is needed ?

Changed October 27, 2008 10:33AM UTC by jazzyjay comment:2

I needed this to display a progress indicator during animation. I have a hige table and I hide/display columns. This process can take few seconds (usually 1-2s) during which I would like to display an indicator that browser is still working.

So the way I figured this could work would be:

1. Show the progress indicator

2. Execute .hide()/.show() on a number of selected elements

3. Callback function after all elements have been processed hides the progress indicator

Thanks

J.

Changed October 29, 2008 11:33PM UTC by flesler comment:3

The animations should take the same amount of time, ending pretty much at the same time, at least for most cases.

For the test case, we need an html file with the needed html/js/css.

You can use this link to jQuery's source in the test case.

Changed November 05, 2008 12:48PM UTC by jazzyjay comment:4

Hi,

The URL is:

http://www.sharesmagazine.co.uk/ext/tables/

Speed of the animation is OK in FF3, Safari3, even IE7 but Opera 9.5 is incredibly slow. A progress indicator would be especially useful under these circumstances.

Thanks

J.

Changed August 12, 2010 12:49AM UTC by dmethvin comment:5

resolution: → worksforme
status: newclosed

It seems like the current behavior is a benefit for this case. You could set a counter to the number of callbacks expected, then advance the progress bar by decrementing the counter on each callback.