question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[NavigationDrawer] transition doesn't work

See original GitHub issue

Hi, react-md is super cool, thanks for that.

it seems that NavigationDrawer should have transition effect, as far as i can tell it uses old (v1) version of react transitions - but, unfortunetly, without any effect.

I tried to add super long transitionEnterTimeout and transitionLeaveTimeout to see if it its doing anything. also I changed transitionName to something like example and add css:

`.example-enter.example-enter-active { opacity: 1; transition: opacity 500ms ease-in; background: red; border:10px red; }

.example-leave { opacity: 1; background: blue; border:10px blue; }

.example-leave.example-leave-active { opacity: 0.01; transition: opacity 300ms ease-in; background: green; border:10px green; }` just to see if it do anything. but it’s not.

also I don’t any tranition effect on examples provided in documentation. soo…I think it is a bug.

Thx

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mi4uucommented, Nov 23, 2017

[EDIT] it was my div 😉 sory for that. it is working now, thx !

thx for help! I changed it to { children ? React.cloneElement(children, {key: pathname}) : null }

And I can see in react inspector what it got the key, but don’t see any transition (also I dont see any in example: https://react-md.mlaursen.com/discover-more/routing-examples/navigation-drawers/drafts )

May this be because it looks like this: image

and there is some div with key 0.1 always before my children ? not sure, I’t is not my div anyway 😃

0reactions
mlaursencommented, Nov 20, 2017

If you are using react-router v3, you should check out the with-react-router-v3 example. It shows how you can set up a NavigationDrawer and get the different routes to animate in with the default transition.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Animate fragment transitions with using Navigation drawer or ...
I have tested this solution and it seems to work well but of course there can be something which doesn't work exactly as...
Read more >
[Drawer] component animation doesn't seem to work #10587
The drawer component immediately closes when opening or closing. Do I have to set enter and leave transition props ? If so could...
Read more >
Update UI components with NavigationUI - Android Developers
The navigation drawer is a UI panel that shows your app's main navigation menu. The drawer appears when the user touches the drawer...
Read more >
Re-writing React Navigation Stack | by Satyajit Sahoo
In the current stack navigator, animations are based on index change: when the current active index changes, an animation is performed. This ...
Read more >
When switch from navigation drawer, the hamburger icon ...
I use the navigation components with a DrawerLayout in my main (nav host) ... P2, NavigationUI doesn't work well with nested graph start...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found