N
N
Nikolai2019-12-23 11:41:02
JavaScript
Nikolai, 2019-12-23 11:41:02

How to make a sidebar with the possibility of partial hiding?

I'm writing a website in react. I use https://react.semantic-ui.com for ui .
How to make a sidebar that, when clicked, decreases in length to the length of the icons in the menu items?
For example, as in nethouse:
5e007d73045b3456881330.png
5e007d8582445471492371.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-12-23
@HistoryART

Take the bar width calc(100% - bar width), and calculate the desired nav width

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question