aos:out:customEvent does not trigger
See original GitHub issueThis is:
- Bug
Specifications
- AOS version: aos@next
- OS: Windows 10
- Browser: Chrome
Expected Behavior
When the “out-animation” starts it should fire the aos:out:customEvent
Actual Behavior
When the “out-animation” starts it fire the aos:in:customEvent
Possible Solution
change line 49 inside handleScroll.js from:
fireEvent(aos:in:${el.options.id}
, node);
to:
fireEvent(aos:out:${el.options.id}
, node);
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Element event listener callback not working with custom event
The problem is that the event never goes through the element, you're firing the event on document . Instead, fire it on the...
Read more >Creating and triggering events - MDN Web Docs - Mozilla
This article demonstrates how to create and dispatch DOM events. Such events are commonly called synthetic events, as opposed to the events ...
Read more >Dispatching custom events - The Modern JavaScript Tutorial
For instance, a root element of our own JS-based menu may trigger events telling what happens with the menu: open (menu open), select...
Read more >#11047 (If you trigger a custom event you can NOT catch it ...
If you trigger a custom event you can NOT catch it using the addEventListener function. Reported by: anonymous, Owned by: Priority: undecided, Milestone:...
Read more >How to trigger custom event in adobe launch rules
I believe Launch's Custom Event event still doesn't work with jQuery's triggered custom events. I assume that this is because jQuery's custom events...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I already created a pull request to fix this issue, the author of AOS hasnt responded yet. Pretty sure he will at some point, can’t wait to use the official repository again. Meanwhile i forked the project and fixed the bug there: https://github.com/AndTheGodsMadeLove/aos
If you are just looking for a minified version with the fix you can find it here: https://samuelweber.at/aos/dist/aos.js
I would like to see this merged, I just noticed this problem too. Almost I’m was opening issue untill seeing this pr.