3 ms·
The main reason I've been wanting this is to have panels that smoothly expand and collapse.
by disease 8y ago
The main reason I've been wanting this is to have panels that smoothly expand and collapse.
- dclowd9901 8y agoYou're building panels with a grid though?
- setr 8y agoMy WebDev knowledge is quite poor but it seems natural to me that if you have slack-like sidebars, where they tend to be optional but non-temporary, the ideal solution would be 2 css-grids, and a way to switch between them. Even if it were temporary, like a shop using a sidebar for its menu , it still seems intuitively the preferred solution. Essentially just flipping between grid-states. This is assuming you're actually dealing with a grid, and not some kind of floating pop-over panel eg a drop-down menu panel How would you go about it? Maybe more importantly, how would you want to go about it?
- lexicality 8y agoHonestly, for sidebars I'd use flexbox. For anything where you only need to control one dimension, flexbox is way easier and cleaner. Plus you can animate it!