added left and right fades and made so that on

mobiles it's just up
This commit is contained in:
Karma Riuk
2023-09-03 00:10:57 +02:00
parent 891fe84af8
commit bbf67c1221
2 changed files with 13 additions and 6 deletions

View File

@ -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();
})();
})();