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.

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:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sebakerckhofcommented, May 9, 2016

The sidenav already animates using transform: translateX. However, the main content is animated using margin-left, which changes the width of the container and can result in poor performance. But using translate 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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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