No video

Sticky NavBar With JQuery | HTML, CSS & JavaScript

  Рет қаралды 444,620

Codegrid

Codegrid

Күн бұрын

This Tutorial Can Give You The Basic Idea How Can You Create Scroll Activated Navigation Bar Using JQuery.
Check out My New Video To Get Idea How You Can Make The Sticky Navbar "Responsive" !
Watch it Here : • Responsive Sticky Navb...
Source Code : 123link.vip/MYP7
JQuery Cdn : code.jquery.com/
Background Image : wallpaperscraf...
Discord: / discord
Instagram : / codegridweb
Twitter : / codegridweb
Thanks for watching!

Пікірлер: 292
@codegrid
@codegrid 2 жыл бұрын
Join discord here: discord.com/invite/8jf6bkqSGF
@codegrid
@codegrid 5 жыл бұрын
These are some of the books that can help you learn web designing - 1. Web Design with HTML, CSS, JavaScript and jQuery Set - amzn.to/2T3WViK 2. HTML 5 Black Book (Covers CSS3, JavaScript, XML, XHTML, AJAX, PHP, jQuery) 2ED. - amzn.to/2DtVBAo 3. JavaScript and JQuery: Interactive Front-End Web Development - amzn.to/2R78ofJ 4. Web Animation using JavaScript: Develop & Design (Develop and Design) - amzn.to/2AZ3vQF 5. Mastering SVG: Ace web animations, visualizations, and vector graphics with HTML, CSS, and JavaScript - amzn.to/2S1dj6p
@abdulqaderftw4764
@abdulqaderftw4764 6 жыл бұрын
The first video I saw in your channel and I really like it nice intro , coding is clean music is just my type I like it and your desigining is amazing. subbed and like
@codegrid
@codegrid 6 жыл бұрын
Source Code : www.dropbox.com/sh/2so52l4q74eu470/AABDHemSW_WsLUlBfPaLsNwsa?dl=0
@f1criss
@f1criss 6 жыл бұрын
..or position:fixed for the
@labschi
@labschi 6 жыл бұрын
Let me propose a few improvements: prepare the markup before so that you can start with the sticky navbar. Additionally you could explain how to make a navbar sticky without using position:fixed from the beginning (because you don't have the navbar at the top all the time). You have to determine the current scroll height, how to switch navbar styles and so on. Also responsive aspects should be considered: what if your navbar will have other styles in small viewports and your approach to "stickyness" will change these styles? It may be a "basic idea", but heating water doesn't make you a cook either ...
@InfoBinger
@InfoBinger 5 жыл бұрын
Thank you for the cool nav bar and the learning from this video. I got stuck because I didn't add the jquery src to my html file but as soon as I popped that src code in it worked.
@Hiatuz4
@Hiatuz4 6 жыл бұрын
watch 28 seconds of this video and God damn! I love it.
@iamsanketdesai
@iamsanketdesai 6 жыл бұрын
THANK YOU ....you saved my assignment..
@joshuamachado9738
@joshuamachado9738 5 жыл бұрын
I have my code already but where would i insert the code for the sticky NavBar
@aulonmorina6698
@aulonmorina6698 5 жыл бұрын
Thank you for this tutorial, very practical and I'm amazed by this interactivity between css and jquery.
@george12312142
@george12312142 5 жыл бұрын
Learn a lot from your channel really thank u
@joshsturgess2219
@joshsturgess2219 6 жыл бұрын
@onlineteachingcourses2426
@onlineteachingcourses2426 6 жыл бұрын
Josh Sturgess Hi buddy hope you are doing great. If you want to know or learn the complete website design from scratch then you can do checkout this bit.ly/2zKIvz0
@papichuuloo4238
@papichuuloo4238 5 жыл бұрын
Hell of a video. Great job clean code!! BRILLIANT.. I just liked and subscribed, can't wait to learn more!!!
@qnn4ik
@qnn4ik 6 жыл бұрын
Man, you're amazing!! Thank you!!
@christopherlancegamboa3315
@christopherlancegamboa3315 6 жыл бұрын
Thumbs Up bro! I'll use it for designing my Program
@K24yuvakannadiga
@K24yuvakannadiga 6 жыл бұрын
I like u r page ...asome very nice
@TheChevyelite
@TheChevyelite 6 жыл бұрын
A big shout!! Many thanks for the coding
@robertodepasamonte3434
@robertodepasamonte3434 3 жыл бұрын
Thank you for this awesome "sticky navbar" tutorial -- and providing the source code. I find all of your tutorials very thorough and helpful. One question for you. What VSCode extension are you using that shows the js tooltips explaining the js syntax?
@Steve_360
@Steve_360 6 жыл бұрын
Great video and nice and short for people with short attention span and cant watch a 3 hour vid cause they have so much to do like me
@RainOnline
@RainOnline 4 жыл бұрын
what is .black that you always add? I Dont get it.
@sukmaraharja7446
@sukmaraharja7446 6 жыл бұрын
beautifully done
@artesobrepapel8361
@artesobrepapel8361 6 жыл бұрын
estan geniales los videos ..te apoyo! quiero ver más producciones!!!!
@Snowboardbound
@Snowboardbound 5 жыл бұрын
If you find your LOGO wont style and also doesn't center vertically to the other menu items, simply replace nav.logo with div.logo in your CSS and that should fix it!
@Kljopa
@Kljopa 5 жыл бұрын
Nice lesson!
@elisabethvu4571
@elisabethvu4571 6 жыл бұрын
I can't get the last one, og doesn't get Black when i scroll my page. I just copy the code. Og does not work. Help pls
@tharunpothuraj
@tharunpothuraj 4 жыл бұрын
Thanks alot your tutorial helped me.
@user-ff3ms8pe9u
@user-ff3ms8pe9u 5 жыл бұрын
Wow awsome vidio! Thanks!
@nathangallimore616
@nathangallimore616 5 жыл бұрын
any idea as to why my nav bar isn't turning black? i have looked over the code so many times and haven't found anything different to yours.??
@learnnew2958
@learnnew2958 5 жыл бұрын
geatly inspired from your video !thank u so much !subscribed
@ashlama6060
@ashlama6060 6 жыл бұрын
Hey do you prefer extensions on brakets?? If yes, what do you use? By the way very clean html and css love your work
@bogdannikitchuk3878
@bogdannikitchuk3878 6 жыл бұрын
Thank you, awesome code!
@chdekko5725
@chdekko5725 6 жыл бұрын
"Log In" button will stuck at page if you minimize the width become too thin... i not sure is this situation just only happen to me or the code itself have problem
@codegrid
@codegrid 6 жыл бұрын
+氷咖啡 This is not responsive! So for Responsive navigation bar you can watch my new video (link in description) and download the source code from description!
@chdekko5725
@chdekko5725 6 жыл бұрын
Thank You, This will help me a lot :)
@Leverquin
@Leverquin 6 жыл бұрын
what is difference between nav.black and nav .logo? beside in space? to be specific does nav.black select nav tag with class .black, and nav .logo - select class "logo" inside nav tag?
@user-vk4pk7pd4v
@user-vk4pk7pd4v 5 жыл бұрын
Yes
@odiblue77
@odiblue77 6 жыл бұрын
hey this video is great.thank you very very muck! I customized code a little bit and it turned out great ,, i just have one question: how did you style the scrollbar, i couldn't find that part in your code
@derrickkirwa9467
@derrickkirwa9467 6 жыл бұрын
Thanks ! Nice content awesome playlist
@jatinsuthar7686
@jatinsuthar7686 4 жыл бұрын
My Javascript file is not working...on sliding down , the background color is not changing into rgba....
@voardis
@voardis 5 жыл бұрын
Why use the float in the css?
@franzmiranda7830
@franzmiranda7830 6 жыл бұрын
You just saved my life
@anirbandasgupta3992
@anirbandasgupta3992 6 жыл бұрын
Hi Codegrid, I am unable to fetch the scrolling effect. I have followed the steps you showed but it is not working. I have already checked the jquery code inside the script tag and checked for syntax errors. Nothing found. Please help.
@codegrid
@codegrid 6 жыл бұрын
+Anirban Dasgupta You can get the source code from the link mentioned in description!
@anirbandasgupta3992
@anirbandasgupta3992 6 жыл бұрын
The concern still persists. The jquery script is not working. How to make it works? Please let me know.
@xekyute1993
@xekyute1993 6 жыл бұрын
I am new, but you can update it by downloading jquery again or changing the jquery code in html or css? to the recent update, which is 3.3.1 atm!
@codegrid
@codegrid 6 жыл бұрын
Anirban Dasgupta Just download the source code and try to run it! I have added cdn for jquery in head section. All you need is Internet connection. It'll work!
@CreativeAnujkumar
@CreativeAnujkumar 4 жыл бұрын
thanks codegrid
@krishnapatel2457
@krishnapatel2457 6 жыл бұрын
'black' class is not mentioned in html file. How did it work??
@codegrid
@codegrid 6 жыл бұрын
Ya we define properties for class "black" in stylesheet. Though it is not mentioned in html file we can add certain classes to divs on certain events (e.g 'onclick', 'onscroll', etc.) using Jquery or Javascript!
@Sky-df7hk
@Sky-df7hk 6 жыл бұрын
In future please talk in the videos and explain why you're doing things. Thanks!
@codegrid
@codegrid 6 жыл бұрын
Source Code : www.dropbox.com/sh/2so52l4q74eu470/AABDHemSW_WsLUlBfPaLsNwsa?dl=0
@insa1988
@insa1988 6 жыл бұрын
What a nice work thank you
@theAltKalki
@theAltKalki 6 жыл бұрын
Your designing is damn good dude!
@accelerox
@accelerox 5 жыл бұрын
Good pase, good music, good content. Subscribed
@plankton383
@plankton383 6 жыл бұрын
Great content, thank you! Just wondering... where are you from?
@Hiatuz4
@Hiatuz4 6 жыл бұрын
How would you make it responsive to a phone or tablet?
@codegrid
@codegrid 6 жыл бұрын
+Jukke Boxx Link in description!
@elijahoxford2909
@elijahoxford2909 6 жыл бұрын
Great video
@CodeWithAli
@CodeWithAli 5 жыл бұрын
Thanks mate
@nofucksgiven3034
@nofucksgiven3034 5 жыл бұрын
Nice Tutorial and very nive NavBar! But i have a problem on Mobile Phones, when i go on the website and click on the 3 Lines for the navbar, there are only 5 Index Tab, but i have made 6. Could you help me? - sorry for my bad English, im german.
@riskikukuh1293
@riskikukuh1293 6 жыл бұрын
Thanks for information :D
@peterkabiru5144
@peterkabiru5144 6 жыл бұрын
Thanks, very helpful!... and what is the name of the background music..I like it
@codegrid
@codegrid 6 жыл бұрын
+Peter Kabiru Links in the description!
@DevSage
@DevSage 6 жыл бұрын
Cool video
6 жыл бұрын
Hello @Codegrid , please how i can add content to website? i mean how to create when i click on navbar "buy" show me content
@mananqayas1630
@mananqayas1630 6 жыл бұрын
For this you will have to link another html file with href of this navigation.
@FlaviaSierro
@FlaviaSierro 5 жыл бұрын
WAW! this was amazing ! But can you show how to make menu works ? link it please. I dont know how make this.
@kingkiitt7355
@kingkiitt7355 5 жыл бұрын
Thank you very much!
@loanyelo15
@loanyelo15 5 жыл бұрын
and the class wrapper?
@stephanetabi5137
@stephanetabi5137 5 жыл бұрын
Thanks. But I do not see of class named "black" in the file HTML and however you use in the file CSS.How it works?
@shishiuo29
@shishiuo29 5 жыл бұрын
What tools you can use to make that???pls share to us
@ahmedstarasad7741
@ahmedstarasad7741 5 жыл бұрын
Great
@YuVox
@YuVox 6 жыл бұрын
Wow, very cool, it's a pity that there is no such content on the Russian-speaking KZfaq. I'm from Ukraine) Keep it up!
@mehreenali9018
@mehreenali9018 6 жыл бұрын
Your text of the header is overlapping when u scrolling how to fixed it could u tell me ? When we scroll down the header div is to fixed/ sticky and could not overlap the text of the header to another div ?
@Vimble
@Vimble 5 жыл бұрын
Спасибо за видео! Thank you!
@yaciine9026
@yaciine9026 5 жыл бұрын
this is great man 😃😃
@diegocastaneda2326
@diegocastaneda2326 5 жыл бұрын
Sticky bar is not working for me :( and also,when i use background:url(image.jpg) with the route of the image,once i scroll through the page and pass the image and then come back the image disappears and only a blank space is shown instead of the picture,what could it be? :/
@hanisamnani8174
@hanisamnani8174 5 жыл бұрын
the link rel of css need to have location of folder
@CareerOverseasVisaConsultants
@CareerOverseasVisaConsultants 6 жыл бұрын
black class not loaded i just download the source code from the link and paste but still black class not loaded on scrolling just a white background
@xenon2106
@xenon2106 6 жыл бұрын
Thank You :)
@Faz20king
@Faz20king 6 жыл бұрын
If I wanted to include the navbar in every page, would I need to copy paste this code? Or could I do it in the style sheet
@xtronix856
@xtronix856 5 жыл бұрын
Why i can't see red frame when i use this in Django... someting wrong with .js ?
@xekyute1993
@xekyute1993 6 жыл бұрын
I'm so new to this, I am meant to create a website page for my a level exam, I came across this video and it really is interesting. I'm not sure what jquery is, although I did download it. But can anyone tell me what the program codegrid is using?? PLEASE HELP ME OUT :( Real thanks!
@codegrid
@codegrid 6 жыл бұрын
+Caossupremenk - csnk As I told before, I'm using 'Atom' Text Editor. You can download it from the link given below : atom.io
@xekyute1993
@xekyute1993 6 жыл бұрын
Is it visual code studio??
@user-tz5qy8qp5q
@user-tz5qy8qp5q 6 жыл бұрын
Continue good
@entatainermyself
@entatainermyself 5 жыл бұрын
Nice
@jesuspereiraoficial
@jesuspereiraoficial 5 жыл бұрын
Waoooo is wonderfull!
@CyrusCole
@CyrusCole 5 жыл бұрын
Hi can you please help me maybe. I have a different navigation bar and modified my html and css to add your jquery into it, but it doesn't change the nav bar's color. Please help!!!!!!
@FabianoFernandespro
@FabianoFernandespro 5 жыл бұрын
Great video vlw
@seinmin9142
@seinmin9142 5 жыл бұрын
What is that text editor?
@Kevin-yf8vp
@Kevin-yf8vp 6 жыл бұрын
Good code
@packagemanager
@packagemanager 6 жыл бұрын
annoying music
@codegrid
@codegrid 6 жыл бұрын
machaka And?
@NoahWright28
@NoahWright28 6 жыл бұрын
Codegrid The music was good. I usually code to music like this :)
@8Gothiclord
@8Gothiclord 6 жыл бұрын
But what if banner is black?
@ibnuhidayat3286
@ibnuhidayat3286 5 жыл бұрын
What's you use app program text?
@seinmin9142
@seinmin9142 5 жыл бұрын
Can someone tell me what is that text editor ?
@renataoliveira401
@renataoliveira401 6 жыл бұрын
thank you so much
@IMBIGTBLEED12
@IMBIGTBLEED12 5 жыл бұрын
this was really cool ty
@nipy4342
@nipy4342 6 жыл бұрын
what is nav.black??
@franz5076
@franz5076 6 жыл бұрын
Thanks! :D
@ASPaion
@ASPaion 5 жыл бұрын
Hello mate, i try download this tutorial but the download its ur first tutotrial not this one. Other question, can u create one responsive menu same this with out boostrap only css3 html5 icons and jquery? ty very much.
@jeffreyomadto4119
@jeffreyomadto4119 6 жыл бұрын
Hi. There is a problem when i scroll down my page the background color of navigation is just plain or without color black.
@codegrid
@codegrid 6 жыл бұрын
+Jeffrey Omadto You might not added Background-color property to "nav.black"! Check your code whether it's exactly same ae mine or not.
@jeffreyomadto4119
@jeffreyomadto4119 6 жыл бұрын
here is my code sir . nav.black { background: rgba(0,0,0,0.8); height: 100px; padding: 10px 100px; } nav.black ul li a { color: #fff; }
@DoubleKlutch99
@DoubleKlutch99 6 жыл бұрын
I am having close to the same issue. Whenever I scroll down, the text turns white and it moves in closer together a little bit. the exact opposite happens when I scroll up.
@DoubleKlutch99
@DoubleKlutch99 6 жыл бұрын
I fixed the text turning white issue. however the moving in part is still there.
@TechBriefOfficial
@TechBriefOfficial 6 жыл бұрын
Hey!!! mention this url with script tag before your mentioned script tag in your html file, your problem will be solved :)
@ipride3518
@ipride3518 5 жыл бұрын
Hey, great video! Did everything as shown. However, when i click the bars, the menu does not open... any help?? Thank you all!!
@mastercode7851
@mastercode7851 6 жыл бұрын
amazing amazing amazing
@muhammadsolikhin8025
@muhammadsolikhin8025 5 жыл бұрын
I tried replacing the image with a slideshow, but when i hovered the navbar the hover didn't appear I tried to change some positions but it didn't work can you help me :(
@TheRealDucko
@TheRealDucko 6 жыл бұрын
If you had a picture instead of the text "logo" how can you make it change color from black to white
@rohankubal6405
@rohankubal6405 5 жыл бұрын
I want source code....it is not available at link given above...
@raialo
@raialo 5 жыл бұрын
the source code does not work at all and I had a prob with the position of the nav bar.Can you please upload the code?
@l5757
@l5757 6 жыл бұрын
오우 멋져요 잘보고갑니다^^!!!
@solo.2449
@solo.2449 6 жыл бұрын
Came for the tutorial, stayed for the music.
@miksntn2537
@miksntn2537 6 жыл бұрын
what font did you have used??
@TheFlipzzyGaming
@TheFlipzzyGaming 6 жыл бұрын
I was wondering if this type of menu I can make it responsive to other devices? I have watched your other video but i really like that type of Menu. So Any suggestions? Thanks!
@codegrid
@codegrid 6 жыл бұрын
+Niko's life Here's my video to make the Sticky Navigation Bar 'Responsive'! Watch it here : kzfaq.info/get/bejne/kMt8Zax9ksqwpYE.html
@codegrid
@codegrid 6 жыл бұрын
Source Code : www.dropbox.com/sh/2so52l4q74eu470/AABDHemSW_WsLUlBfPaLsNwsa?dl=0
@AlexanderMutuku
@AlexanderMutuku 6 жыл бұрын
thanks alot ..
@onlineteachingcourses2426
@onlineteachingcourses2426 6 жыл бұрын
Hi hope you are doing great. If you want to know or learn the complete website design from scratch then you can do checkout this bit.ly/2zKIvz0
@hunterdarkt9923
@hunterdarkt9923 6 жыл бұрын
i made a nav bar and my text in my body is under the nav bar...what can i do?
@afzalhossainrana
@afzalhossainrana 5 жыл бұрын
Which software is that please reply! I'm using Dreamweaver, but I'm not enjoying this
@codegrid
@codegrid 5 жыл бұрын
Brackets
@afzalhossainrana
@afzalhossainrana 5 жыл бұрын
@@codegrid Thanks a lot
@avriesimmons1627
@avriesimmons1627 6 жыл бұрын
This no longer works for me. The scrolling doesnt respornd at all
@sunnydhiman3289
@sunnydhiman3289 5 жыл бұрын
Is it device version ?
Slide Out Navigation | HTML, CSS & JavaScript
5:08
Codegrid
Рет қаралды 84 М.
This Simple Trick Makes Your Website 83% Better Looking
10:57
Web Dev Simplified
Рет қаралды 388 М.
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 2,2 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 9 МЛН
I Supercharged Instagram Stories With JavaScript & GSAP
16:23
This Hypnotic Image Gallery Has Dynamic Layout Transitions
11:49
Learn CSS Animations In 20 Minutes - For Beginners
21:22
Slaying The Dragon
Рет қаралды 1 МЛН
This Cool JavaScript Effect Will Make Your Website 3D !
56:21
True Coder
Рет қаралды 1,1 МЛН
Mind-Bending Scroll Animations With GSAP & ScrollTrigger
9:17
Incredible scroll-based animations with CSS-only
32:23
Kevin Powell
Рет қаралды 419 М.
5 simple tips to making responsive layouts the easy way
15:54
Kevin Powell
Рет қаралды 761 М.
SVG Stroke Animation | HTML & CSS
6:44
Codegrid
Рет қаралды 236 М.
Responsive navbar tutorial using HTML CSS & JS
49:25
Kevin Powell
Рет қаралды 1 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 2,2 МЛН