Reconsider margin transition on sidenav
See original GitHub issue- Do you want to request a feature or report a bug? Bug
- What is the current behavior? Poor performance for sidenav toggle transition
- **If the current behavior is a bug,
@jelbourn’s material2 demo and sidenav template show that transition is targeting
margin-left
. - What is the expected behavior?
I would expect animating
transform: translateX
unless there’s a reason that I missed - What is the motivation / use case for changing the behavior? Smoother toggle transition
- Which version of Angular and Material, and which browser and OS does this issue affect? Material alpha 4
- Other information I would love to fix this if you agree Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Angular Incorrect Margin-Left Applied To Sidenav Content
It happens about 50% of the time when I load the app, the margin-left is applied. The rest of the time it is...
Read more >Margin and Capital Requirements for Covered Swap Entities
On November 7, 2019, the agencies sought comment on a proposal to revise certain parts of the Swap Margin Rule to facilitate the ......
Read more >HTML & CSS Tutorial 4-6 quick answers Flashcards | Quizlet
Create a style rule that sets the size of the page box to 8.5 inches by 11 inches with a 1 inch margin....
Read more >ICE businesses: Navigating the energy-transition trend within ...
Although the transition to electric vehicles (EVs) is already ... automotive sales (see sidebar, “The remarkable resurgence of OEMs and ...
Read more >CSS GPU Animation: Doing It Right - Smashing Magazine
We've decided to animate the A element by moving it with the left property ... Safari's Web Inspector has an awesome “Layers” sidebar...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The sidenav already animates using
transform: translateX
. However, the main content is animated usingmargin-left
, which changes the width of the container and can result in poor performance. But usingtranslate
there would not have the same behavior. One does actually want the width to change.I think a good middle ground is the way
google inbox
does it. They animate the side bar, but they don’t animate the main content. So the side nav slides in using a transform, but the width of the main content does not animate, but just jumps back and forth.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.