aos:out:customEvent does not trigger

Created on 23 Apr 2019  路  3Comments  路  Source: michalsnik/aos

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);

Most helpful comment

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

All 3 comments

I've also noticed this bug; i managed to get the out event working but still the aos:in fires..
image

It seems that your correction solves it but it hasn't been corrected yet :(

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

Would love to see this merged and released so can be used as an npm-asset

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dsmol1 picture Dsmol1  路  3Comments

halverson picture halverson  路  4Comments

junaidfarooqui picture junaidfarooqui  路  3Comments

webdevnerdstuff picture webdevnerdstuff  路  3Comments

Panoplos picture Panoplos  路  3Comments