-
Notifications
You must be signed in to change notification settings - Fork 137
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
Transition to the next page directly #52
Comments
@nukeop thanks for the kind words. it depends on how you're composing it. are you wrapping individual routes with the |
I'm wrapping a render() {
return(
<Route render={({location, history, match}) => {
return (
<MainLayout>
<RouteTransition
pathname={location.pathname}
atEnter={{ opacity: 0 }}
atLeave={{ opacity: 0 }}
atActive={{ opacity: 1 }}
className={styles.transition}
>
<Switch key={location.key} location={location}>
<Route path="/album/:albumId" component={AlbumViewContainer} />
<Route path="/artist/:artistId" component={ArtistViewContainer} />
<Route path="/dashboard" component={Dashboard} />
<Route path="/" component={SearchResultsContainer} />
</Switch>
</RouteTransition>
</MainLayout>
);
}
}>
</Route>
);
} |
@nukeop what happens if you set the also, what styles are being set via the |
changing pathname to The scss sheet sets the following properties:
|
Also experiencing this exact issue with AnimatedSwitch. @nukeop did you figure out how to fix this? |
I'm using this code to great effect, thank you for sharing it.
I have a following question: right now using a transition makes the program correctly leave the previous view, but it transitions to an empty page, then the next view pops in. Is there a way to make it transition directly to the next page?
The text was updated successfully, but these errors were encountered: