Bug Tracker

Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#6281 closed enhancement (worksforme)

Slots for animations

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

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.

Change History (11)

comment:1 Changed 6 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 6 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

comment:3 Changed 6 years ago by AzaToth

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

comment:4 Changed 5 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:5 Changed 5 years ago by snover

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

comment:6 Changed 5 years ago by dmethvin

  • Milestone set to 1.5

comment:7 Changed 5 years ago by dmethvin

#7490 is a duplicate of this ticket.

comment:8 Changed 5 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 5 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 5 years ago by AzaToth

comment:11 Changed 5 years ago by john

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

This was fixed with the resolution of #7917.

Note: See TracTickets for help on using tickets.