Drawer `transitionDuration` property refers to its content only
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
Setting the transitionDuration property on persistent Drawer refers only to its content transition, but not to the drawer as a whole.

Expected behavior 🤔
Setting the transitionDuration property on persistent Drawer doesn't refer only to its content transition, but to the pushing of the page too.
Steps to reproduce 🕹
https://codesandbox.io/s/drawer-transitionduration-bug-ujg9d2?file=/demo.tsx
Context 🔦
I have a drawer which is laggy and the intermittency can be seen even for small transitionDuration values.
I would like the page to be pushed at the same time as the content, not faster nor slower.
Your environment 🌎
Default CodeSandbox configuration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction for the persistent Drawer and inspect how transitionDuration affects the content and page push. Done means both transitions start together and use the configured duration, with the behavior verified against the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100