Sign in
Log inSign up
ReactJS - How can I animate page transitions in the best possible way?

ReactJS - How can I animate page transitions in the best possible way?

Mike Boutin's photo
Mike Boutin
·Jan 22, 2016

Hi!

I got a project where i need to have multiple page transitions animations.

I use :

<ReactTransitionGroup component="div" className="animationContainer" {...this.props}>
            {React.cloneElement(this.props.children || <div />, { key })}
</ReactTransitionGroup>

This is for my registration form, but i need another in a parent component. When i add it, it remove the transitions in my registration form.

How can i handle page transitions to animate only direct children?

Thank you!

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct