Giter Club home page Giter Club logo

Comments (7)

JonS7 avatar JonS7 commented on June 6, 2024 9

I found you can actually do this by writing you own transition for when the .aos-animate class is applied, and leaving data-aos empty...
<div class="fade-out" data-aos></div>
.fade-out.aos-animate {opacity: 0}

from aos.

C1V1L14N avatar C1V1L14N commented on June 6, 2024 3

Hi, your library is very nice and a handy tool for sure. To be honest, like the people above, I was very surprised there wasn't a fade out option. It makes sense to me that everything you can do should be able to be done in reverse.

from aos.

michalsnik avatar michalsnik commented on June 6, 2024

Hi @timotheegoguely, thanks for reaching out.

Please notice that both of animations zoom-in and zoom-out works the way that they start with opacity: 0 and ends with opacity: 1, the only difference is that one of them starts with different scale. They are both about showing an element.

The animation you're proposing will hide an element, which is not what I want to do with this library.

from aos.

janstieler avatar janstieler commented on June 6, 2024

Hi,
I'm actually have yet also the situation that I need a fadeout on scroll.

The animation you're proposing will hide an element, which is not what I want to do with this library.
What will you not with your library? That Elements will be hidden? Sorry really strange position.
I like your library but because of this, I have to use another one or I have to write my own function yet.

from aos.

voltmer1 avatar voltmer1 commented on June 6, 2024

Hi, your library is very nice and a handy tool for sure. To be honest, like the people above, I was very surprised there wasn't a fade out option. It makes sense to me that everything you can do should be able to be done in reverse.

I TOTALY agree! The option to fade-out elements would be very useful.

from aos.

welbinator avatar welbinator commented on June 6, 2024

I found you can actually do this by writing you own transition for when the .aos-animate class is applied, and leaving data-aos empty... <div class="fade-out" data-aos></div> .fade-out.aos-animate {opacity: 0}

I dunno perhaps I misunderstand but that's not working for me, because for whatever reason the .aos-animate class is being added right away, before I even scroll, so as soon as the page loads the element has opacity of 0. I was under the impression this would cause it to fade out when you start scrolling, basically the opposite of the standard AOS fade-in where it fades in when you scroll

from aos.

devSahinur avatar devSahinur commented on June 6, 2024

@JonS7

Thank you

from aos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.