Slide Out Navigation | HTML, CSS & JavaScript

preview_player
Показать описание
This Tutorial Gives You The Basic Idea How You Can Create Your Own Custom Sliding Navigation By Writing Only Couple Of Lines JavaScript Code !!

---------------- Social Media ----------------

Thank You For Watching !

Music :

Credits :
LAIRE :
Рекомендации по теме
Комментарии
Автор

Codes:
<htm>

<head>
<style>
* {
margin: 0px;
padding: 0px;
}

#sidebar {
position: absolute;
width: 300px;
height: 100%;
background: #000;
left: -300px;
transition: .4s;
}

#sidebar ul li {
list-style: none;
color: #fff;
font-size: 20px;
padding: 26px 24px;
}

#sidebar .toggle-btn {
position: absolute;
top: 30px;
left: 330px;
}

.toggle-btn span {
width: 45px;
height: 4px;
background: #000;
display: block;
margin-top: 4px;
}

#sidebar.active {
left: 0;
}
</style>
</head>

<body>
<div id="sidebar">
<div class="toggle-btn" onclick ="show()">
<span></span>
<span></span>
<span></span>
</div>
<ul>
<li>Home</li>
<li>Work</li>
<li>About</li>
<li>Contact</li>
</ul>
</div>
<script>
function show() {

}
</script>
</body>
</htm>

techblog
Автор

Thanks! I was searching for tutorials of it and all the others were too complicated and would need bigger changes on my css. Keep doing your great work!

braien
Автор

Thanks a lot for the post. Your posts are very helpful!

brandonikjoo
Автор

*Thx for link in description!*


Yes...

ArtOfFun
Автор

So if I want to put a picture as the three bar menu instead, I just define the width and height of the btn-toggle and set the image as a background-image on css?

slr
Автор

Excellent video. Thanks for the consistently great work.

nomdplume
Автор

Very nice video but which IDE are you using here

adityakalra
Автор

it works but the scroll bar never hides . the whole block goes to the side and the scrollbar appears what to do?

awszr
Автор

But what about when we scroll the body? wouldn't menu will stick position? we need follow menu div while we scroll on view.

nirajdeshmukh
Автор

My JS won't work, do I need another package than "script" (atom)

eraze
Автор

code doesnt work, the button thingy wont open my slide menu, ive written everything as it is and TRIPPLE checked EVERYTHING. idk whats up but if anyone can help lmk

duxteh
Автор

is it possible that the button to 'extend out' remains in the same place?

moritzpfeffer
Автор

my sidebar come only when i press it. how i can solve tis problem?

Home_films_
Автор

Can't be download. ...
M a Student and can't afford net.. 😕
But you. ...😥
. Can't understand...

zeeshhashmi
Автор

three dots is not showing . what to do????

utsavpoudel
Автор

I want to find a video where it comes from the TOP of the screen

daudwaqas
Автор

pls use human frndly music and volume also

gamershub
Автор

How come my's not workiing dude there is something missing?

RealRyan