question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aos:out:customEvent does not trigger

See original GitHub issue

This 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

5reactions
AndTheGodsMadeLovecommented, Jun 21, 2019

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

0reactions
OFK0commented, Nov 1, 2022

I would like to see this merged, I just noticed this problem too. Almost I’m was opening issue untill seeing this pr.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found