Brilliant! This was exactly what I was looking for. Love how you keep it all clean and simple. Thank you!!
@franexmo81-
4 жыл бұрын
Simple but nice looking. Thanks!
@EnglishRain
4 жыл бұрын
Amazing stuff man, you're a JS wizard!
@gams101
4 жыл бұрын
Amazing tutorial! Hope you can cover more of the essential components just like this. Thanks!
@codu
4 жыл бұрын
Will have a playlist of website builds coming up in a few weeks. 💜
@front-endanimal6359
4 жыл бұрын
i love your neon font!
@codu
4 жыл бұрын
Synthwave '84. It's beautiful!
@front-endanimal6359
4 жыл бұрын
@@codu but very difficult you eyes. i had used that, when you so long writting code, the font do very pain for eyes)
@codu
4 жыл бұрын
@@front-endanimal6359 I'm used to it, I use it 8 hours a day.
@moonshinebrigade
7 ай бұрын
Great tutorial! Somehow the shouldStickPosition doesn't play nice, or at least in Firefox at the moment. I've changed it to: window.onload = function(event) { shouldStickPosition = window.innerHeight - navbar.offsetHeight; };
@codeSTACKr
4 жыл бұрын
Great Job! Keep it up :)
@codu
4 жыл бұрын
💜You the best Jesse, I'll be happy if someday I'm half as awesome as you! 🚀
@tommyzDad
2 жыл бұрын
12:04: Javacript starts.
@edwardholmes91
3 жыл бұрын
Great tutorial, but I noticed a few issues in the JS... lines 1 and 3 didn't seem happy with 'let', so I had to change them to 'var'. On line 13, I had to use 'window.onscroll = function() {addOrRemoveStickyClass()};' and similarly, a separate function for line 17. I also noticed that if the window resizes when the navbar is at the top, shouldStickPosition is then set to 0px, which locks it at the top permanently, until the page is reloaded. I had a play around, with an if statement, in the onresize function, but gave up in the end. In my case, I wanted slightly different functionality anyway, so, I was able to modify as needed. I wanted a navbar to stick at the top of the screen after a header image had disappeared (180px in my case). Many thanks for pointing me in the right direction 🙂 P.S. I've not come across the 'not' pseudo selector before, nifty to know! Thanks.
Пікірлер: 16