Alaguraj0361 107f07c035
Some checks failed
Build and Deploy Build Output / build (push) Has been cancelled
first commit
2025-09-26 21:09:39 +05:30

21 lines
580 B
JavaScript

import Aos from "aos";
export const wellfoodUtility = {
animation() {
Aos.init();
},
fixedHeader() {
window.addEventListener("scroll", function () {
// Header Style and Scroll to Top
if (document.querySelectorAll(".main-header").length) {
var windowpos = document.documentElement.scrollTop;
var siteHeader = document.querySelector(".main-header");
if (windowpos >= 100) {
siteHeader.classList.add("fixed-header");
} else {
siteHeader.classList.remove("fixed-header");
}
}
});
},
};