When I use the fixed-top class on my nav bar, it stays on top of the header as shown in the image. However, when I scroll down, the menu also scrolls down. Is there a way to make the navigation look the same but not follow when scrolling? I want to achieve this without using the fixed-top class.
Pictures https://i.sstatic.net/t9UZM.png https://i.sstatic.net/xW1A2.png
Below are the code snippets:
* {
padding: 0;
margin: 0;
}
body {
background-color: #fff;
}
nav.navbar {
transition: top 0.3s;
}
...
<script src="https://kit.fontawesome.com/e5f67cf6ac.js" crossorigin="anonymous"></script>
<script src="reveal.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
...
I attempted to integrate the navigation into the header section.