Aos: Bottom elements wont appear.

Created on 12 Jul 2018  路  3Comments  路  Source: michalsnik/aos

This is:

  • Bug

Specifications

  • AOS version:
  • Browser:

Expected Behavior


Bottom element should start animation with less scroll downs.

Actual Behavior


If you put data-aos (for example: fade-in) at the bottom elements, they won't appear because you need to scroll a little bit more, but there is nowhere to scroll, if you give some margin-bottom to your container, you can scroll down little bit more and fade in animation happens.

Steps to Reproduce the Problem



Just create some content and try to give fade animation to bottom elements.

Detailed Description

Possible Solution


Option to choose how far you have to scroll before animation happens

question

Most helpful comment

Wow, just came on Github to see if there was a ticket for this... +1

All 3 comments

Wow, just came on Github to see if there was a ticket for this... +1

So the solution to this is the anchor. If you have a section wrapper ID use that as the data-aos-anchor. And then use data-aos-anchor-placement="bottom-bottom". Here is my code:

<section id="g-copyright">

<div data-aos="fade-up" data-aos-anchor="#g-copyright" data-aos-anchor-placement="bottom-bottom">Reggie</div>

</section>

Hey @Dsmol1 @simmonsr !

It's because of the default 120px offset. You can however override it on per element basis:

<div class="copyright" data-aos="fade-up" data-aos-offset="0"></div>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

noisypope picture noisypope  路  4Comments

junaidfarooqui picture junaidfarooqui  路  3Comments

VeronikaMilic picture VeronikaMilic  路  4Comments

hockey2112 picture hockey2112  路  4Comments

webdevnerdstuff picture webdevnerdstuff  路  3Comments