react-transition-group icon indicating copy to clipboard operation
react-transition-group copied to clipboard

animation not smooth on safari mobile app

Open AdeleRevert opened this issue 5 years ago • 5 comments

Hello beautiful humans,

I'm using ReactCSSTransitionGroup on a mobile website. This animation works perfectly fine with every navigators but Safari.

const backgroundTransition = {
  enter: 'animated',
  enterActive: 'fadeIn',
  leave: 'animated',
  leaveActive: 'fadeOut',
};

const Modality = ({children, isDisplayed, onClose}) => (
  <Fragment>
    <ReactCSSTransitionGroup
      transitionName={backgroundTransition}
      transitionEnterTimeout={300}
      transitionLeaveTimeout={300}
    >

I mean it works but it's not smooth at all, it appears in two times. Do you have any idea ?

Thanks :)

AdeleRevert avatar Jan 17 '20 13:01 AdeleRevert

Which CSS property are you animating?

silvenon avatar Mar 31 '20 17:03 silvenon

We probably have the same issue https://github.com/reactjs/react-transition-group/issues/631

philipnery avatar May 22 '20 09:05 philipnery

SwitchTransition also doesn't work on Safari 15.4.

gyk avatar Jun 05 '22 06:06 gyk

@gyk in what way? I tried the demo in Safari 15.5 and it works for me.

silvenon avatar Jun 14 '22 00:06 silvenon

@silvenon Sorry, it works now. Last time I tested, the issue of "out-in" mode was:

  1. The fly-out part of the animation is good.
  2. For the fly-in part, you don't see smooth transition from .fade-enter (translateX(-100%)) to .fade-enter-active (translateX(0%)).

Maybe some transient problem of Safari...

gyk avatar Jun 14 '22 04:06 gyk