Тёмный

How to Create a Animated Sidebar Menu using HTML, CSS & JavaScript. 

Подписаться
Просмотров 668 тыс.
% 6 621

Learn how to create a animated sidebar menu with HTML, CSS and JavaScript. In this video we'll walk you through step-by-step on how to add sidebar in websites/webpages.
Code: bit.ly/3oC1MXB

Опубликовано:

 

22 июн 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 437   
@Codingflag
@Codingflag 3 года назад
Code: bit.ly/3l4Mzga
@Jamesomnipotent
@Jamesomnipotent 3 года назад
Hi, instead of using onclick() within the HTML, I assigned 'id=toggleID' to the div of the burger menu , and then i Did this in the JavaScript file but it didnt work like the onclick() method. let toggleMyMenu = document.getElementById("toggleID"); toggleMyMenu.addEventListener("click", () => { document.getElementById("sidebar").classList.toggle("active"); }); Would appreciate your reply and reasons as to why it didnt work thanks!
@Codingflag
@Codingflag 3 года назад
@@Jamesomnipotent Can you please share whole HTML and JavaScript code so that I can help
@sauliko31
@sauliko31 4 года назад
YOU DESERVE OSCAR MAN THIS IS MASTERPIECE THANKS!!!!!
@Welcometomyjourney20
@Welcometomyjourney20 6 лет назад
Awesome. Small tip: no need to design hamburger menu with css. There's already html entity of that. It is '&#9776'. Just put on html directly
@samwheatley1529
@samwheatley1529 6 лет назад
Wait is there actually!
@Welcometomyjourney20
@Welcometomyjourney20 6 лет назад
yes it is. you can change its style as any html element as well, just google it: hamburger html entity!
@jaymcd8577
@jaymcd8577 6 лет назад
No Android, renders weird on Windows Chrome, Internet Explorer, etc. ?
@erickmclark
@erickmclark 6 лет назад
But how do you style it in css? I want to make it a menu. Do you just create a div class/id?
@jaymcd8577
@jaymcd8577 6 лет назад
Just stick with the css, I looked up what they're talking about and its a bit outdated or not well supported, a bit more head ache than its worth for a menu.
@williambanks8914
@williambanks8914 6 лет назад
Cheers man you are awesome, been looking for a responsive sidebar nav for a while and stumbled across this. Top stuff.
@InferiPlasma
@InferiPlasma 4 года назад
A great straightforward tutorial, thanks a lot man!
@ricardopereira3058
@ricardopereira3058 5 лет назад
Thanks ;) Simple and working .. with a little tweaks it turns out really good !!
@ilhamr2542
@ilhamr2542 4 года назад
Thank you so much, Dude. You've helped me a lot.
@farnetani1273
@farnetani1273 6 лет назад
Perfect! Congratulations!
@eunhye1754
@eunhye1754 5 лет назад
It's 2:00 am and you saved my project and my life, thank u! ;^;
@kapkaal
@kapkaal 5 лет назад
Nice bro jhakkas..luved it..simple and effective..👌👏
@GoMathewVideo
@GoMathewVideo 6 лет назад
nicely done without using a huge amount of code!
@godwinyoh3700
@godwinyoh3700 3 года назад
it can also be done with pure css too. Was hyped when i learnt of it
@Kish431
@Kish431 6 лет назад
Awesome video crystal clear with explanation
@ohunjonbakhtiyori5852
@ohunjonbakhtiyori5852 6 лет назад
very simple menu and understandably. Thanks
@Jamal_1842
@Jamal_1842 5 лет назад
Works great and Thanks for the tutorial :)
@subincbenny7140
@subincbenny7140 6 лет назад
Nice clean and simple. Great job man
@MsDarsh003
@MsDarsh003 6 лет назад
Thanks for awesome video. Also thanks for not providing source code. This helped learning how it works
@redefamatv
@redefamatv 3 года назад
amazing tutorial....delivering nice content without a huge amount of code!!Pretty effective, beautiful and precisely done in just 10 minutes!....Just keep it up!!Got a subscriber!!...Hugs from Brazil!!
@Abh19021
@Abh19021 6 лет назад
You are awesome man
@PraveenKumar-hu5ju
@PraveenKumar-hu5ju 5 лет назад
Very nice explanation Short and sweet
@bennma6306
@bennma6306 6 лет назад
thanks dude this was really useful!
@Tendo_27
@Tendo_27 5 лет назад
Worked for me..thanks a ton bro!!
@ytalolopes1843
@ytalolopes1843 6 лет назад
Você se garante Codingflag. Obrigado por nos ensinar!
@yoericktv9610
@yoericktv9610 6 лет назад
liked and subscribed dude you're awesome!
@francescocugini5401
@francescocugini5401 6 лет назад
Thank you! Very useful
@GlobaliwebSolution
@GlobaliwebSolution 5 лет назад
Awesome tutorial bro !!!
@surbhitamrakar1638
@surbhitamrakar1638 4 года назад
Very nice video.A clear cut explanation..well done sir.
@felix6142
@felix6142 4 года назад
amazing, thank you so much!
@NitinSingh9x
@NitinSingh9x 5 лет назад
Awesome bro please do upload this kind of stuff which web application layouts like topnav,sidenav and content page.
@VikashKumar-uz4td
@VikashKumar-uz4td 2 года назад
What a great video ...explained all of his code ...... And only in 10 minutes ..... U deserve a million subs ....keep it up
@Codingflag
@Codingflag 2 года назад
Glad it helped
@simonkalu
@simonkalu 5 лет назад
Super awesome, cool, and concise
@sourishmazumdar2107
@sourishmazumdar2107 6 лет назад
great tutorial , make one for animated "Animated Navbar" !
@mariacristinaulloagarrido1224
@mariacristinaulloagarrido1224 4 года назад
wunderbar, bestens erklärt! Danke sehr!
@alinawaz4034
@alinawaz4034 5 лет назад
VERYYYYYY GOOOD THANKS MANNNNNNNNN
@surajbherwani6195
@surajbherwani6195 4 года назад
You're awesome bro. You should create some more.
@makimarzouki9723
@makimarzouki9723 4 года назад
simple and efficient :D
@sarmadali77771
@sarmadali77771 6 лет назад
Good tutorial keep it up
@ShwibiTech
@ShwibiTech 5 лет назад
INDIAN! love it.
@olansean9868
@olansean9868 6 лет назад
Indians are the greatest teachers believe it or not
@TheArthurW
@TheArthurW 4 года назад
Nice tutorial dude. Well explained.
@miteshprajapati4468
@miteshprajapati4468 5 лет назад
cool tutorial bro i appreciate to learn from you
@muralikrishna2417
@muralikrishna2417 5 лет назад
Thank u so much.
@jeric.moreno
@jeric.moreno 6 лет назад
thanks, man !
@ericklestrange6255
@ericklestrange6255 5 лет назад
cool. i found several things that i dindt have on my jon duckett books. first adding the onclick at the html and not on the js, second the very useful classlist (didnt know it even existed), third the icon made of span display blocks was very clever, and last the transition (ive known of its existance since its very important but its not included in most my books)
@OstonCodeCypher
@OstonCodeCypher 6 лет назад
thanks for the tutorial
@hafsarami8592
@hafsarami8592 5 лет назад
thank you for the tutorial. does any one know if we can implement this into a SharePoint page ?
@DingoDingKumai
@DingoDingKumai 4 года назад
I love this tutorial.
@AdilMahmoodMusic
@AdilMahmoodMusic 5 лет назад
Bro loved your work can you just make a short video on RU-vid side bar mechanics im new to java and want to learn that youtube side bar
@dilipsarkar4959
@dilipsarkar4959 6 лет назад
good tutorial
@marcelojose4850
@marcelojose4850 4 года назад
Show de bola amigo, me ajudou muito, muito obrigado
@CineMaverickStudios
@CineMaverickStudios 4 года назад
Nice Explanation
@priyadarshini8863
@priyadarshini8863 3 года назад
You deserve Oscar for this video.. thank you soo soo much.
@Codingflag
@Codingflag 3 года назад
Glad it helped
@minchin8041
@minchin8041 6 лет назад
I liked it!
@kelle_li
@kelle_li 5 лет назад
This is good, but how can I get my main content to start to the right of the toggle menu button, right and maybe below it as well? Thanks.
@keysgsgkey4587
@keysgsgkey4587 6 лет назад
Hey @codingflag how do you make the menu go away if you click outside the div?
@scarlettwang1209
@scarlettwang1209 5 лет назад
What application in video that you using to write code in widows?
@joshim9113
@joshim9113 3 года назад
Awesome man, you are very intelligent
@BlackEyedPeas0078
@BlackEyedPeas0078 6 лет назад
Excelent!
@DesaiRamesh
@DesaiRamesh 6 лет назад
Good
@yamengames7120
@yamengames7120 5 лет назад
big thanks
@valentynahayovych1272
@valentynahayovych1272 5 лет назад
I have wanted to make the same menu, but on the right side, so instead of "left", I added "right". But somehow, on my web page there only list of the menu is visible, nothing more (I mean that css and js function does not work) :/ could someone advise what to do?
@brutespartan5709
@brutespartan5709 4 года назад
Great tutorial.
@alsehalo6113
@alsehalo6113 6 лет назад
Home #sidebar{ position:fixed; width:200px; height:100%; background-color:#151719; left:-200px; transition:all 500ms linear; } #sidebar.active{ left:0px; } #sidebar ul li{ color:rgba(230,230,230,0.9); list-style:none; padding:15px 10px; border-bottom:1px solid rgba(100,100,100,0.3); } #sidebar .toggle-btn{ position:absolute; left:230px; top:20px; } #sidebar .toggle-btn span{ display:block; width:30px; height:5px; background: #151719; margin:5px 0px; } function toggleSidebar(){ document.getElementById("sidebar").classList.toggle('active'); }
@dannyj7716
@dannyj7716 5 лет назад
www.w3schools.com/html/default.asp This website has everything anyone needs for help with HTML
@jovanadavalillo7533
@jovanadavalillo7533 3 года назад
Old video but still useful :D Thank you!
@Codingflag
@Codingflag 3 года назад
Glad it helped!
@niftymiller6057
@niftymiller6057 5 лет назад
good video
@warlord_time315
@warlord_time315 5 лет назад
woooh finally i code for 2 hours lol
@rismajw
@rismajw 4 года назад
you're a life saver
@Codingflag
@Codingflag 4 года назад
Thank you
@princeraj1521
@princeraj1521 5 лет назад
thanks bhai you really done a great job by explaining in a simple way ... good going brother keep it up nd thanks for the help in return i will just subscribe your channel...
@sameerjh3961
@sameerjh3961 5 лет назад
Awesome
@I1Ido.
@I1Ido. Год назад
mine always get overflow out of the screen don't know how to fix it. .sidebar, body { overflow-x: hidden; }
@kasanag2401
@kasanag2401 5 лет назад
Ha can u help me I getting this error togglesidebar is defined but never used.[no-unused-vars]
@haitiandynasty4035
@haitiandynasty4035 4 года назад
same here!
@hrishikeshawari3221
@hrishikeshawari3221 6 лет назад
Thanks..
@einsteincreative
@einsteincreative 4 года назад
what Application were you coding in? I liked the windows and the view..Its very smart workflow.
@pianoLee-sx9dx
@pianoLee-sx9dx 5 лет назад
Hey guys! Can someone explain to me what is position fixed? I roughly know a bit a bout it but not much... Can you still use the attributes left, right, top and bottom? Does it stay in one place because I do realise that when I use position relative, it does move things around sometimes...
@alibutt3366
@alibutt3366 4 года назад
Thank you friend
@mustafaali6419
@mustafaali6419 6 лет назад
class active in css you use it but you dont use it in html mark up , whats that mean because i have error
@pianoLee-sx9dx
@pianoLee-sx9dx 5 лет назад
This is a great tutorial! I am new to php and web development.. is it possible to leave questions here and get a reply promptly? I have found it hard to get some good decent help...
@asmakhalaf4443
@asmakhalaf4443 5 лет назад
Thanks it works perfectly
@andrewbolgov3314
@andrewbolgov3314 3 года назад
Wow! so simple, thx!
@Codingflag
@Codingflag 3 года назад
Glad it helped!
@yasmeencerny4660
@yasmeencerny4660 6 лет назад
Nice
@christosathanasiou5481
@christosathanasiou5481 6 лет назад
i have problem with the spans i can see them ... any help ?
@aminostemo6179
@aminostemo6179 6 лет назад
thank you
@electrotsmishar
@electrotsmishar 5 лет назад
nice
@mohammednihaz428
@mohammednihaz428 5 лет назад
in java script the classlist.toggle('active') where is no identity html or css where is it come from toggle
@aridev009
@aridev009 6 лет назад
very nice
@yassinelaaskri5766
@yassinelaaskri5766 6 лет назад
i think i need some help, nothing happend when i click on the icon even if i put the script inside the body
@pianoLee-sx9dx
@pianoLee-sx9dx 5 лет назад
How would I go about in creating another submenu on another page?
@ErrorDebug
@ErrorDebug 5 лет назад
Thanks
@neon256
@neon256 5 лет назад
the javascript in sublime won't work
@ankitkumarvashist8991
@ankitkumarvashist8991 6 лет назад
it was good bro, liked and subscribe for more such videos.
@DesignHub4U
@DesignHub4U 4 года назад
For more creative designing videos subscibe us ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-E39cG2Eys4o.html
@2002budokan
@2002budokan 4 года назад
What happens if the content exceeds the screen height. Is this side-bar scrollable?
@polojoy6824
@polojoy6824 4 года назад
thank q so much
@hajji384
@hajji384 4 года назад
awesome work done thanks .
@revilalar.8918
@revilalar.8918 6 лет назад
what application do you used when you are coding ?
@corneliustonui584
@corneliustonui584 4 года назад
Thank you
@mizoapex4991
@mizoapex4991 4 года назад
Good one
@schelz3878
@schelz3878 4 года назад
Thank you so much
@yashabhi8802
@yashabhi8802 4 года назад
i'm not getting the transition while i click om the nav button
@varuzhangevorgyan995
@varuzhangevorgyan995 4 года назад
Thanks you help me
@robycave9337
@robycave9337 6 лет назад
Thank you! May I ask you a question, please? By using your solution, in my case, the menù appears over the rest of the page, by covering the part of the page. I would like it move away the rest of the page during it appers. Does it possible? (considering that the rest of the page is another ...
@Codingflag
@Codingflag 6 лет назад
Simply give padding-left to body.
@robycave9337
@robycave9337 6 лет назад
??? nothing change
@ceopratekpharmacy1215
@ceopratekpharmacy1215 6 лет назад
Please give us full version of video its very difficult for begainers.