Kolby  Wyman

Kolby Wyman


Sticky Navigation Bar on Scroll using HTML CSS Fixed Navbar on Scroll

Sticky Navigation Bar on Scroll using HTML CSS | Fixed Navbar on Scroll

#css #nav

What is GEEK

Buddha Community

Sticky Navigation Bar on Scroll using HTML CSS  Fixed Navbar on Scroll
anita maity

anita maity


Sidebar Menu Using Only HTML and CSS | Side Navigation Bar

how to create a Sidebar Menu using HTML and CSS only. Previously I have shared a Responsive Navigation Menu Bar using HTML & CSS only, now it’s time to create a Side Navigation Menu Bar that slides from the left or right side.


#sidebar menu using html css #side navigation menu html css #css side navigation menu bar #,pure css sidebar menu #side menu bar html css #side menu bar using html css

Rahul Jangid


The animated sticky navigation bar on scroll | Fixed Navbar on Scroll

Hello, guys in this tutorial we will create an animated sticky navigation bar on scroll using HTML CSS & JavaScript

Common Query

  1. how to create a fixed navbar
  2. how to add class on scroll
  3. how to create a sticky navigation bar on scroll

Hello, guys In this tutorial we will try to solve above mention query. and also we will learn how to create an animated sticky navigation bar on scroll using HTML CSS & JavaScript

First, we need to create three files index.html and style.css then we need to do code for it.

Fixed Navbar Step:1

Add below code inside index.html

<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8" />
  <title>Animated Sticky Nav</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <link rel="stylesheet" href="style.css" />
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Oswald&display=swap" rel="stylesheet">
  <nav id="navbar">
    <ul class="menu-list">
      <li class="logo"><a href="#"><img src="quiz-logo.png" alt="logo"></a></li>
      <li><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">FAQ's</a></li>
      <li><a href="#">Contact Us</a></li>
    const nav = document.querySelector("#navbar");
    const NavTop = nav.offsetTop;

    function fixnavbar(){
      if(window.scrollY >= NavTop){
        document.body.style.paddingTop = nav.offsetHeight + "px";
      }else {
        document.body.style.paddingTop = 0;
    window.addEventListener("scroll", fixnavbar);

Fixed Navbar Step:2

Then we need to add code for style.css which code I provide in the below screen.

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Oswald', sans-serif;
body {
  background: #f2f4f6;
  height: 200vh;
header {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbb833;
  height: 25vh;
header > h1 {
  color: #fff;
  font-size: 100px;
  text-shadow: 3px 5px 0 rgb(0 0 0 / 20%);
nav#navbar {
  background: #3f3d56;
  top: 0;
  position: relative;
  width: 100%;
  transition: all 0.5s linear;
  z-index: 1;
ul.menu-list {
  display: flex;
  list-style: none;
ul.menu-list li {
  display: flex;
  flex: 1;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
ul.menu-list li.logo {
  max-width: 0;
  overflow: hidden;
  background: #fff;
  transition: all 0.5s linear;
.logo > a > img {
  max-width: 80px;
ul.menu-list li > a {
  text-decoration: unset;
  display: flex;
  color: #fff;
  transition: 0.2s linar;
  text-transform: uppercase;
body.fixed-nav nav#navbar {
  position: fixed;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
body.fixed-nav li.logo {
  max-width: 300px;

Fixed Navbar Output: Watch Now

We hope you liked this article (The animated sticky navigation bar on scroll | Fixed Navbar on Scroll). You should definitely keep your thoughts about it in the comment below and share this article with your friends.

#html #css #navbar #fixed navbar #fixed navbar on scroll

Brielle  Maggio

Brielle Maggio


Create CSS Navbar for your website - 2 Website Navigation Bar using HTML and CSS Flexbox

In this video tutorial, we will be learning how to make 2 simple HTML CSS navbar or navigation bar menu for a website using CSS FLEXBOX.

We will explore how we can use flexbox to build and arrange web components and easily change their layout.

Please find the HTML and CSS files in my blog down below:

Thank you for watching and hope you enjoy my other videos as well.

#css navbar #css #navigation bar #html

Sticky Navigation Bar Using HTML, CSS,&JS | Sticky Navbar on Scroll | Fixed Navbar With JS

Sticky Navigation Bar Using HTML, CSS, and JS | Sticky Navbar on Scroll | Fixed Navbar With JS | sticky navigation bar HTML css

Source Code - https://www.codingpoweryt.com/2021/07/sticky-navigation-bar-using-javascript.html


In this video, I create a Sticky Navigation Bar using HTML, CSS, and JS. so if you want to learn that then you have to watch the full video.

If you enjoy the video then share it with your friend and hit the like button and most important don’t forget to subscribe to the channel for more videos like this.

Queries solved in this video

sticky navigation bar,
sticky navigation bar html css,
sticky navbar,
pure css sticky header,
sticky navbar html css,
css position sticky,
sticky navbar on scroll css,
navigation bar in html and css,
navigation bar,
sticky navigation bar on scroll using javascript,
sticky navigation menu bar html and css,
sticky navbar after scroll,
sticky navigation,
how to make a fixed navigation bar using html and css,
sticky header,
scrolling navigation bar css,

#stickynavbar #fixednavigationbar #sticknavbaronscroll
#codingpower #htmlandcss #javascripttutorial #navigationbar

#html #css #javascript

Josefa  Corwin

Josefa Corwin


Responsive Navigation Menu Bar using HTML & CSS

Hi guys in this video we will be building this responsive nav bar with HTML CSS and JAVASCRIPT.
Please if like this video please give it thumbs up and also if you have not subscribe to my channel please try and subscribe.

#navigationbar #navbar #css #html #html & css #javascript