-
Notifications
You must be signed in to change notification settings - Fork 25.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Timing-function sometimes gets ignored in safari #37440
Comments
@SlateDave I found the same issue some time ago and, as far as I can tell, it doesn't happen sometimes but every time the animation involves adding or removing an element from the DOM as part of the animation. Please take a look at this demo project: https://stackblitz.com/edit/angular-animations-safari In the Stackblitz project, I created a very simple component with 5 squares. Each square has a different timing function:
When you click Animate 1, 2, 3 and 4, the animation works fine both in Chrome and Safari. You can see that the animation timing function applied to each square is different (which is correct). But if you click Animate All in Safari, you'll notice that all squares are animated using the same animation timing function even though they all have different timing functions being applied. Apparently adding or removing the element from the DOM is breaking the animation timing function somehow. Could this be a bug in Safari Webkit? |
@sebaferreras I think there is an additional problem besides the one with adding and removing elements. And that is: If you interrupt the animation in the middle, Safari will use the "ease" function for all of them again. |
@SlateDave You're absolutely right, that's another way of reproducing the issue. So, so far the issue seems to be happening when:
|
+1 |
Nice reproduction. Happens to me with *ngIf based animations, never remembered to file the issue though, so good on you! |
Good news! This bug seems to have been fixed on the latest public beta version of macOS Big Sur and iOS 14 for me. |
Closing since this seems like it was a WebKit/Safari bug that has been fixed in later versions. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 bug report
Affected Package
The issue is caused by package @angular/animations
Description
I'm trying to build a animation with angular animations, but if I choose a custom cubic-bezier timing function, it sometimes gets ignored in apple's safari browser (desktop and mobile).
🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-qyj9rv
Chrome's behavior:

Safari's behavior:

🌍 Your Environment
The text was updated successfully, but these errors were encountered: