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

Disable for mobile #29

Open
Kaless1n opened this issue Jul 28, 2023 · 2 comments
Open

Disable for mobile #29

Kaless1n opened this issue Jul 28, 2023 · 2 comments

Comments

@Kaless1n
Copy link

I would like an option to disable animations for mobile devices.

@danielclough
Copy link

What about using media queries to disable?

For example:

@media (min-width: 900px) {
    @keyframes -global-from-left {
        0% {
            transform: rotateX(50deg) translateX(-200vw) skewX(-50deg);
            opacity: 0;
        }
        100% {
            transform: rotateX(0deg) translateX(0) skewX(0deg);
            opacity: 1;
        }
    }

@Kaless1n
Copy link
Author

What about using media queries to disable?

For example:

@media (min-width: 900px) {
    @keyframes -global-from-left {
        0% {
            transform: rotateX(50deg) translateX(-200vw) skewX(-50deg);
            opacity: 0;
        }
        100% {
            transform: rotateX(0deg) translateX(0) skewX(0deg);
            opacity: 1;
        }
    }

An element is still not visible before scroll.

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

2 participants