[Webkit-unassigned] [Bug 211839] [Web Animations] Use CA animations when playbackRate != 1
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 20 12:47:00 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211839
Antoine Quint <graouts at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |graouts at apple.com
--- Comment #2 from Antoine Quint <graouts at apple.com> ---
Looks like we can make this work with this approach:
1. create a CAAnimation
1. set `animation.duration` to `webAnimation.duration`
2. set `animation.beginTime` to `-webAnimation.currentTime`
2. create a CAAnimationGroup
1. set `group.speed` to `webAnimation.playbackRate`
2. set `group.duration` to `webAnimation.effect.duration - webAnimation.currentTime`
3. set `group.animations` to `[animation]`
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200520/6b009ac7/attachment.htm>
More information about the webkit-unassigned
mailing list