Sticky Navbar Tailwind by Editorial Staff Output View Horizontal Vertical HTML CSS JS Tidy LOGO Home Themes Developers Pricing Blog About Us Register Login HTML CSS JS Tidy HTML CSS JS Tidy const appData = () => { return { percent: 0, appInit() { // source: https://codepen.io/A_kamel/pen/qBmmGKJ window.addEventListener('scroll', () => { let winScroll = document.body.scrollTop || document.documentElement.scrollTop, height = document.documentElement.scrollHeight - document.documentElement.clientHeight; this.percent = Math.round((winScroll / height) * 100); }); }, }; }; >_Console Clear Console >_Console File Setting HTML Code Playground Setting Title Description Sticky Navbar component made in Tailwind CSS, with a dummy content box. Its feature sticky navbar with login and register link. Catagory Tailwind Tags Navbar Responsive Navbar Resource Add External Stylesheets and Script