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

AOS Working on Desktop but Not on Mobile #420

Open
mattsidnell opened this issue Nov 4, 2018 · 10 comments
Open

AOS Working on Desktop but Not on Mobile #420

mattsidnell opened this issue Nov 4, 2018 · 10 comments

Comments

@mattsidnell
Copy link

AOS works perfectly using CDN servers on desktop but will not work no matter what I try on ios mobile. It does work when I request the desktop view from the mobile browser, so is not a view port issue. I have also tried to add "disable: false," to the AOS.init({}) function, although this makes no difference.

This is:

  • Question

Specifications

  • AOS version:
  • OS: ios
  • Browser: Safari
@hannahjohnson438
Copy link

I'm having the same issue on Android. When I try to scroll down, nothing happens. It's as though AOS has disabled scrolling on my mobile.

Also having trouble turning it off - I managed to get it to stop working but none of my content would load since its' default opacity was all 0.

@mattsidnell
Copy link
Author

Hi,

Is there any update on this issue?

Matt

@JeffersonMat
Copy link

Hi there,

I'm trying to desactive the AOS on mobiles but I still want it to work on Desktop. Any suggestions on how I can sort this out?
Thanks!

@almeidatercero
Copy link

Hi there,

I'm trying to desactive the AOS on mobiles but I still want it to work on Desktop. Any suggestions on how I can sort this out?
Thanks!

you can disable on mobile with
AOS.init({ disable: 'mobile' });

thats what i did

@neon0047
Copy link

Facing the same issue ! Everything just disappears on phone as the opacity is zero. Can anyone help?

@paulvladmuresan
Copy link

HTML,BODY { overflow-x:hidden; } is messing up the mobile animations. Please solve this issue

@CofeeDev
Copy link

HTML, BODY {overflow-x: hidden; } está estropeando las animaciones móviles. Resuelve este problema

Thank's

@fahedusmanrana
Copy link

@mattsidnell I have mentioned a solution which worked for me here #646 (comment)
I hope it will work for you.

@yann-catlinn
Copy link

yann-catlinn commented Jun 26, 2022

I'm working with Nuxt Vuejs and I`ve found a solution that works for me, is just use aos.js to disable aos, as almeidatercero has commented:

AOS.init({ disable: 'mobile' });

but in addition, i was overwritten aos.css. So I've overwritten the properties in my CSS:

@media only screen and (max-width: 768px) {
    .animated {
        /*CSS transitions*/
        -o-transition-property: none !important;
        -moz-transition-property: none !important;
        -ms-transition-property: none !important;
        -webkit-transition-property: none !important;
        transition-property: none !important;
        /*CSS transforms*/
        -o-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -webkit-transform: none !important;
        transform: none !important;
        /*CSS animations*/
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -o-animation: none !important;
        -ms-animation: none !important;
        animation: none !important;
    }
    [data-aos^="fade"][data-aos^="fade"],
    [data-aos^="zoom"][data-aos^="zoom"] {
        opacity: 1 !important;
    }
    [data-aos="zoom-in"] {
        transform: scale(1) !important;
    }
}

@hidegh
Copy link

hidegh commented Dec 12, 2022

Actually it just seems as if the animation point would be shifted. When I use href="#someId" the page scrolls there but the AOS screen is still outside the visible region (overflow x works for desktop). When I start to scroll and I scroll out from the region where I'd the AOS region to be shown I see the AOS region scrolling in...

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

10 participants