Open justacontractor opened 5 years ago
Try use (document).redy function
jQuery( document ).ready( function() { AOS.init({ duration: 500, delay: 200 }); });
I used on a JQuery document
var $j = jQuery.noConflict(); $j(document).ready(function() { AOS.init(); });
hello, please help me how can i add AOS animation in my WordPress website
This is:
Specifications
Expected Behavior
Animation on scroll
Actual Behavior
Animation doesn't happen
Steps to Reproduce the Problem
https://concreteregeneration.com/
functions.php contains:
aos-init.js contains:
Detailed Description
Hi, this is probably a stupid question, but I can't get the library to work. I don't understand anything about javascript or php, but i found this answer - https://github.com/michalsnik/aos/issues/254 and that's how I came up with the php:
And I have a file - aos-init.js, that contains:
yet, my elements won't fade in. I love the way the demo looks and would be absolutely stoked to get in on my stupid website.
My website is https://concreteregeneration.com
EDIT:
My theme allows me to add raw HTML and raw JS elements, so I also tried adding the following to the page:
and
That actually works. However, if it's an easy fix, I would rather do it from the functions.php file so that I don't have to include that on every single page