Bug 170841 - animation-play-state: paused does not work when animation includes transform3d
Summary: animation-play-state: paused does not work when animation includes transform3d
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: Safari 10
Hardware: iPhone / iPad iOS 10
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-04-13 19:44 PDT by Hansol Kim
Modified: 2023-05-10 00:50 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hansol Kim 2017-04-13 19:44:15 PDT
In iOS 10.3.1 Safari, animation-play-state: paused does not work when animation includes a transform3d. 
While searching I came across a report posted on Apple Communities: https://discussions.apple.com/thread/6762081?start=0&tstart=0

The OP has posted 2 jsfiddle links for tests which I think demonstrate this issue clearly, so I will post the links here directly.

Example with normal transform (2d): http://jsfiddle.net/gdementis/p2MgM/3/
Example with transform3d: http://jsfiddle.net/gdementis/HykgE/2/

When tested on desktop Safari 10.1 (12603.1.30.0.34), both examples work properly when clicking on Stop to pause the animation.
When tested on iPhone Safari, the Stop button on the 2nd jsfiddle does not stop the animation.

I discovered this bug when working on my own project where I had used animation-play-state: paused on an element that runs a repeating animation that has scale() transform, and the pause did not work as expected only on iPhone.
Comment 1 Radar WebKit Bug Importer 2017-04-13 22:36:23 PDT
<rdar://problem/31622658>
Comment 2 Michael Duve 2018-02-09 07:20:24 PST
Created a jsfiddle as well, when I stumbled upon this bug ticket, while I was starting to create my own

https://jsfiddle.net/dazlious/ct8zejnu/5/

Needs to be fixed
Comment 3 Antoine Quint 2023-05-10 00:50:34 PDT
Both animations pause in JSFiddle as expected with iOS 16.