Why isn't AOS animation working on my dawn theme rich text?

Why isn't AOS animation working on my dawn theme rich text?

SankalpParekh
Excursionist
30 0 4

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/

 

Screenshot 2023-06-21 at 5.49.44 PM.png

https://michalsnik.github.io/aos/

Replies 8 (8)

Huptech-Web
Shopify Partner
941 188 197

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>

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
SankalpParekh
Excursionist
30 0 4

............

SankalpParekh
Excursionist
30 0 4

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.

Screenshot 2023-06-21 at 6.19.34 PM.png

Screenshot 2023-06-21 at 6.14.52 PM.png

Huptech-Web
Shopify Partner
941 188 197

Hello @SankalpParekh 
you need to keep the aos.js script, I think you have removed it.

Rishihuptech_0-1687352279055.png

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
SankalpParekh
Excursionist
30 0 4

I have added that again, it still doesnt work. 

 

Screenshot 2023-06-21 at 6.31.58 PM.png

 

 

 

Huptech-Web
Shopify Partner
941 188 197

Hello @SankalpParekh 

I have checked the store https://iguanabyswastiparekh.com/
AOS is working completely fine now no errors are there.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
SankalpParekh
Excursionist
30 0 4

It not working on mine. I am using chrome browser.

YuliyaK
Shopify Partner
1 0 0

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