Open lisongting95 opened 5 years ago
Hi ! I confirm, impossible for me to make listeners work with v2.3.4.
Well, I was trying to implement a series of animations by using these events listener. and "aos:in" listener works after the latest update. "aos:out" still doesn't works. I used xx.addEventListener('transitionend', () => {} , this transitionend listener instead
I found the error, to be able to work you have to add the script at the end of the body equal to the domination like this:
Add script right before closing </ body> tag, and initialize AOS:
Githubissues.
This is: Bug
Specifications
Expected Behavior
document listener trigger and print something.
Actual Behavior
nothing happened, listener didn't work.
Steps to Reproduce the Problem
Detailed Description
i added a click listener at the same place and it works.. document.addEventListener('click', () => { console.log('click'); });
Possible Solution