Bug Tracker

Ticket #6281 (closed enhancement: worksforme)

Opened 5 years ago

Last modified 3 years ago

Slots for animations

Reported by: AzaToth Owned by:
Priority: low Milestone: 1.6
Component: effects Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

This patch adds slots to the fx mechanism and results in that all animations in a given slot will use the same time quanta.

Attachments

jquery.fx.slot.patch Download (4.3 KB) - added by AzaToth 5 years ago.
0001-Animation-slots.patch Download (5.4 KB) - added by AzaToth 5 years ago.
updated patch to clean up the interface
0001-Animation-slots.2.patch Download (5.8 KB) - added by AzaToth 5 years ago.
updated patch to remove the requirement to call reset on chained animations

Change History

Changed 5 years ago by AzaToth

Changed 5 years ago by AzaToth

updated patch to clean up the interface

comment:1 Changed 5 years ago by AzaToth

A more detailed reason for this:

When multiple animations are meant to be executed in "parallel", currently they will be asynchronous and thus experience an delayed animation for later elements. To overcome this issue, we add an slot mechanism which specifies that we can use one single slot for a bunch of animations, and they all will use the same start time and current time.

comment:2 Changed 5 years ago by AzaToth

Here is a visual test; the "normal" is what current behavior is, and slotted is when the effect uses the same slot:

 http://js.azatoth.net/test/slotted.html

Changed 5 years ago by AzaToth

updated patch to remove the requirement to call reset on chained animations

comment:3 Changed 5 years ago by AzaToth

See  http://js.azatoth.net/test/slotted2.html for example using second patch.

comment:4 Changed 4 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:5 Changed 4 years ago by snover

  • Priority set to low
  • Status changed from new to open

comment:6 Changed 4 years ago by dmethvin

  • Milestone set to 1.5

comment:7 Changed 4 years ago by dmethvin

#7490 is a duplicate of this ticket.

comment:8 Changed 4 years ago by grevian+jquery@…

Would it be possible to have a callback added for when all elements in a particular slot have finished execution? Also I find the terminology of "slot" to be a little odd, wouldn't "set" or "group", possibly prefixed like "fxgroup" or "AnimationSet" be more appropriate?

comment:9 Changed 4 years ago by gnarf

Another approach to synchronizing animations - http://bugs.jquery.com/ticket/7917 - I opened it having not found this ticket while searching.

comment:10 Changed 4 years ago by AzaToth

comment:11 Changed 4 years ago by john

  • Status changed from open to closed
  • Resolution set to worksforme
  • Milestone set to 1.6

This was fixed with the resolution of #7917.

Note: See TracTickets for help on using tickets.