Skip to content

feat: change mui-series paused behavior for Safari support #97#107

Closed
ncoden wants to merge 5 commits intofoundation:masterfrom
ncoden:fix/safari-mui-series-pause-97
Closed

feat: change mui-series paused behavior for Safari support #97#107
ncoden wants to merge 5 commits intofoundation:masterfrom
ncoden:fix/safari-mui-series-pause-97

Conversation

@ncoden
Copy link
Contributor

@ncoden ncoden commented May 4, 2018

The previous and latest versions of macOS Safari do not handle correctly animation-play-state with animation-fill-mode and the animation never start. See #97 for more informations.

This PR allow the animation to run but also introduce breaking changes.

Changes

  • 11dde5e Change mui-series behavior for better Safari support
    Do not set the animation name until it need to be played. This is the only way to control the animation start on all browsers (including latest Safari versions). See issue for more informations.

  • efd6e38 Add "pause" mui-series modifier to rollback to pause behavior
    Old behavior can be recoverd with the .mui-pause modifier

  • 290855e Update documentation about mui-series paused behavior and rollback

⚠️ BREAKING CHANGE

When .is-animating is removed from .mui-series, the animation is now reset instead of paused. Setting .is-animating back will start the animation from its begining.

Closes #97

ncoden added 3 commits May 4, 2018 23:25


Do not set the animation name until it need to be played. This is the only way to control the animation start on all browsers (including latest Safari versions). See issue for more informations.

**BREAKING CHANGE**
When `.is-animating` is removed from `.mui-series`, the animation is now reset instead of paused. Setting `.is-animating` back will start the animation from its begining.

Closes foundation#97
Allow to enforce the previous paused behavior with a "mui-pause" modifier on `mui-series` elements.

See foundation#97
@ncoden ncoden changed the title Fix/safari mui series pause 97 feat: change mui-series paused behavior for better Safari support #97 May 4, 2018
@ncoden ncoden changed the title feat: change mui-series paused behavior for better Safari support #97 feat: change mui-series paused behavior for Safari support #97 May 4, 2018
@ncoden
Copy link
Contributor Author

ncoden commented May 4, 2018

Poke @SassNinja @hugogiraudel for review.

@KittyGiraudel
Copy link
Contributor

Hello. It will have to wait for Monday for me to find time to review it.

@ncoden
Copy link
Contributor Author

ncoden commented May 5, 2018

Thank you for your time @hugogiraudel. Please note that this PR has downsides. I hope you'll find a solution for #97 that does not break the pause behavior.

@ncoden
Copy link
Contributor Author

ncoden commented May 6, 2018

Closing in favor of #107

@ncoden ncoden closed this May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants