Step1: Add these code in js file.
$(document).on('scroll', function () {
if ($(window).scrollTop() >= 120) {
$('ELEMENT CLASS or ID').addClass('fixed-header');
}
else {
$('ELEMENT CLASS or ID').removeClass('fixed-header');
}
Step2: Add these code in css file.
.fixed-header {
position: fixed;
top: 0;
width: 271px;
Most Commented