All things Shopify and commerce
I am trying to use AOS animations in my dawn theme. I want to add animations to my Rich text.
I have imported and created new assets for aos.css and aos.js and linked them in theme.liquid file.
I have also intialized AOS by putting the following code before </body> on theme.liquid file.
<script> AOS.init(); </script>
I am trying to put animation on rich text on my homepage. But its not working, according to all the tutorials we are supposed to add data-aos="fade-up" in the DIV section, since I am wanting to do it on rich text, I am adding this specific in rich-text.liquid in the specific DIV.
But it doesnt work. Please help me. I am attaching a link to my website and a screenshot of what i want to edit.
https://iguanabyswastiparekh.com/
Hello @SankalpParekh
You forgot to close the src attribute where you have added the script aos.js check this screenshot ( https://prnt.sc/HxLAADCYcJLO )
Replace the code with
<script>
document.addEventListener("DOMContentLoaded", function() { AOS.init(); });
</script>
............
Sorry, I have replace the code in the screenshot with your code.
it doesnt seem to work.
I have also added the animation command in the rich-text.liquid where I want it to work.
Hello @SankalpParekh
you need to keep the aos.js script, I think you have removed it.
I have added that again, it still doesnt work.
Hello @SankalpParekh
I have checked the store https://iguanabyswastiparekh.com/
AOS is working completely fine now no errors are there.
It not working on mine. I am using chrome browser.
Was trying to resolve same issue and come across this thread, I found this helpful video - https://www.youtube.com/watch?v=R-JJw6WKyvI&ab_channel=Se%C3%A1nMythen
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024