N
N
newhack2020-04-21 14:58:50
css
newhack, 2020-04-21 14:58:50

I'm trying to make a smoothly appearing menu, how to do it?

In general, the essence is this. what needs to be done like this https://markgoodyear.com/labs/headhesive/
The most important thing is that nothing twitches, jumps, and nothing flows, decisions like the bottom block to set which indents are not relevant. I actually did it, but when you lift it up, on this break it just disappears, how to make it slide back smoothly ?? Thank you for your attention!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Olovyannikov, 2020-04-21
@newhack

Here we hang it on the banner:
position: fixed;
transform: translateY(-100%);
transition: all 300ms ease-in-out;
According to JS, we add a class to the block to which the dropdown is attached, on the dropdown class translateY 0%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question