Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do an "exit animation" manually using AOS? #838

Open
MellZanatelli opened this issue Dec 15, 2023 · 0 comments
Open

How to do an "exit animation" manually using AOS? #838

MellZanatelli opened this issue Dec 15, 2023 · 0 comments

Comments

@MellZanatelli
Copy link

MellZanatelli commented Dec 15, 2023

In an excerpt from the @michalsnik repository, he explains how to make custom animations in the case of a responsive website. However, when making an animation like the one shown, it does not leave the screen as it scrolls, with the data-aos-mirror function being marked as true or false. I would like to know how to manually do the exit animations or if there is a better way to do it. Thanks.

An excerpt from the animation I made:

[data-aos="AnimaT"] {
        @media(max-width: 1180px){
            opacity: 0;
            filter: blur(5px);
            transform: translateX(-100%);
            transition: all;

            &.aos-animate {
                opacity: 1;
                filter: blur(0);
                transform: translateX(0);
                transition-duration: 2000ms;
            }
        }
        @media(max-width: 840px){
            transition-duration: 500ms;
        }
    }
I just have no idea of how to make an "exit animation".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant