added left and right fades and made so that on
mobiles it's just up
This commit is contained in:
@ -238,6 +238,13 @@
|
||||
true,
|
||||
);
|
||||
}
|
||||
// let horizontal_aoss = document.querySelectorAll("[data-aos~='left'], [data-aos~='right']")
|
||||
if (window.matchMedia("(max-width: 768px)").matches) {
|
||||
let horizontal_aoss = document.querySelectorAll(
|
||||
`[data-aos$="left"], [data-aos$="right"]`,
|
||||
);
|
||||
horizontal_aoss.forEach((el) => el.setAttribute("data-aos", "fade-up"));
|
||||
}
|
||||
AOS.init();
|
||||
});
|
||||
|
||||
@ -269,4 +276,4 @@
|
||||
* Initiate Pure Counter
|
||||
*/
|
||||
new PureCounter();
|
||||
})();
|
||||
})();
|
||||
|
Reference in New Issue
Block a user