I have a problem about page changing animation I'm now using react-transition-group for my animation. The one inside app.jsx works just fine but I try to apply another animation to main.jsx but it's not working. Another can help?
App.jsx
<CSSTransition key={currentkey} classNames={"fade"} timeout={1000}>
<section className="route-section">
<Switch location={this.props.location} >
<Route path="/main" component={Main} />
<Route exact path="/login" component={Login} />
<Redirect exact from="/" to="/login" />
</Switch>
</section>
</CSSTransition>
</TransitionGroup>
Main.jsx
<TransitionGroup className="trantision-group">
<CSSTransition key={currentkey} classNames={"fade"} timeout{1000}>
<section className="route-section">
<Switch >
<Route path="/main/env" component={Env} />
<Route path="/main/home" component={Home} />
<Redirect exact from="/main" to="/main/env" />
</Switch>
</section>
</CSSTransition>
</TransitionGroup >