Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSSTransitionGroup enter transitions do not work in iOS8 (Safari and chrome) #2227

Closed
sbrandwoo opened this issue Sep 22, 2014 · 7 comments
Closed

Comments

@sbrandwoo
Copy link

Best explained with a demo: http://jsbin.com/pinasi/2/ - Hit "Go" a few times, the new numbered boxes should fly in from the left, and the old numbers boxes fly out to the right.

On iOS8, the leave transitions are working fine, but the enter transitions are not activated, the new numbers simply appear in place. Affects iOS8 Chrome and Safari on both an iPad Air and an iPhone 6.

CSS Animations on a whole look to work fine.

@waldreiter
Copy link
Contributor

In the newest Safari on OSX enter transitions are broken too.

If no one has a real fix for this, then I would suggest taking @deadlyicon's PR #2099.

@WickyNilliams
Copy link
Contributor

Can also confirm this is broken in Safari 7.1 on OSX. Here's another test case http://jsfiddle.net/pruNn/8/. Only entry animations are affected.

Edit: Seems that @cody/@deadlyicon's suggestion works - moving transition declaration to enter-active fixes the entry animation as seen here: http://jsfiddle.net/pruNn/9/

@gaearon
Copy link
Collaborator

gaearon commented Oct 5, 2014

Indeed, moving transition to enter-active worked. I wonder if this breaks it somewhere else?

@torarnek
Copy link

torarnek commented Oct 9, 2014

Another example of CSSTransitionGroup (-leave-active) not working in Safari 8 on OSX:
http://jsfiddle.net/z8c58sc9/2/

@rhobot
Copy link

rhobot commented Jan 23, 2015

Safari for Desktop and iOS has several issues in css transition in the first place. Has anyone found whether this react animation specific issue or safari issue?

@gaearon
Copy link
Collaborator

gaearon commented Jan 23, 2015

@rhobot

I think it's caused by a change (bug?) in recent version of CoreAnimation that Safari uses under the hood.

As @WickyNilliams said above, you can fix it by moving transition declaration to -leave-active. This fiddle works on Safari 8, as well as older browsers.

@sophiebits
Copy link
Contributor

Closing in favor of #2104 as these sound pretty similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants