Aos: Updating element classname removes aos-animation class

Created on 26 Feb 2020  路  2Comments  路  Source: michalsnik/aos

This is:

  • Bug


Expected Behavior


Element should not fade out / aos-animate class should not be removed

Actual Behavior


aos-animate class is removed even though elements are in viewport

Steps to Reproduce the Problem



1.I'm using react, when I update my class with a prop, the aos-animate class is removed and therefore the elements disappear even though they are in the view port

Most helpful comment

same issue here

What I did to solve it for now was add an outer div with no styles which I apply the animation on.
"




"

All 2 comments

same issue here

same issue here

What I did to solve it for now was add an outer div with no styles which I apply the animation on.
"




"

Was this page helpful?
0 / 5 - 0 ratings