Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have several elements within a div which are grids and contains between 0 and 32 subitems on the right section of the page. The left section is a navigation section so I have this setup:

|-nav-|---content---|

Above the nav, I have a button to collapse it, which sets its width to 32px with
CSS
transition: width 0.5s;
and the content stretches left to fill the gap. The problem is, when the content section contains elements, the smooth width transition gets increasingly choppy. Even with
CSS
transform: translateZ(0);
on the content's elements or generally with
CSS
div { transform: translateZ(0); }
there is little to no change, and sometimes makes it worse.

I have the most recent version of Chrome and a good computer with plenty of RAM and GPU capability spare. How could I fix this?

What I have tried:

Hardware acceleration
--------------------------------------------------------------------
Posted
Updated 16-Mar-18 0:38am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900