Ticket #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: | ||
| 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
Change History
Changed 3 years ago by AzaToth
-
attachment
0001-Animation-slots.patch
added
updated patch to clean up the interface
comment:1 Changed 3 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 3 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:
Changed 3 years ago by AzaToth
-
attachment
0001-Animation-slots.2.patch
added
updated patch to remove the requirement to call reset on chained animations
comment:3 Changed 3 years ago by AzaToth
See http://js.azatoth.net/test/slotted2.html for example using second patch.
comment:8 Changed 2 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 2 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 2 years ago by AzaToth
Added pull request at https://github.com/jquery/jquery/pull/271
comment:11 Changed 2 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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
