diff --git a/assets/js/main.js b/assets/js/main.js index ddd115d..c44b734 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -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(); -})(); +})(); diff --git a/index.html b/index.html index b9b5e4d..95015fe 100644 --- a/index.html +++ b/index.html @@ -86,12 +86,12 @@
-