T
T
tripcollor2017-03-21 19:06:49
css
tripcollor, 2017-03-21 19:06:49

How to customize side menu with js and css? and neutralize the translate action on position: fixed?

The bottom line is to make an interactive side menu.
By clicking on the hamburger, the sidebar should slide out to the left (or right) and most importantly, move all other content away and the button should be an element of this content (I have wrap) and move along with it at the same time, the button itself and the sidebar should be fixed.
Here is a sketch https://jsfiddle.net/015y6aq5/5/
The fact is that when the menu is called at the end of the page, the button is thrown to the very top at the beginning of the document, how to fix this?
PS The arrangement of elements in the house should remain the same as in my example
(I read somewhere that the translate property affects this in such a way as to bypass or neutralize)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tripcollor, 2017-03-21
@tripcollor

I answer to myself, maybe it will be useful to someone
https://jsfiddle.net/015y6aq5/7/

A
Alex Bond, 2017-03-21
@AlexBond

Something like this - https://jsfiddle.net/Alex_Bond/30vv6dos/1/ ?

E
Emptyform, 2017-03-21
@Emptyform

Like this: https://jsfiddle.net/015y6aq5/2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question