F
F
Fuckingawesomenigga2019-09-09 16:24:00
React
Fuckingawesomenigga, 2019-09-09 16:24:00

How to make the class not disappear (ReactCSSTransitionGroup)?

<ReactCSSTransitionGroup
              transitionName="example"
              transitionAppear={true}
              transitionAppearTimeout={1000}
              transitionEnter={false}
              transitionLeave={false}>
              <h1>Fading at Initial Mount</h1>
            </ReactCSSTransitionGroup>

.example-appear {
  opacity: 0.01;
}

.example-appear.example-appear-active {
  opacity: 1;
  transition: opacity .5s ease-in;
}

In a second, the class disappears completely.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question