JavaScript   

Pure JavaScript functions to detect scroll height for sticky header

let navbar = document.querySelector('.navbar');
let navChangePoint = 100;
function stickyNav() {
	if (window.scrollY >= navChangePoint) {
		navbar.classList.remove('transparent-header');
	} else {
		navbar.classList.add('transparent-header');
	}
}
Need Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us