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 #7

Open
mdrick opened this issue Aug 10, 2016 · 3 comments
Open

Disable for mobile #7

mdrick opened this issue Aug 10, 2016 · 3 comments

Comments

@mdrick
Copy link

mdrick commented Aug 10, 2016

Hi,

I would like to know if it's possible to disable the parallax for mobile/tablet device ?

Thank you in advance

@BrettGregson
Copy link

+1

@philippebarbosa
Copy link

There's no problem to disable the plugin for mobile without updating the plugin.
You just have to init the plugin only for desktop, with libraires as modernizr (Modernizr.mq(mq)) or user-agent sniffing. An example :

    var isMobile; // mobile detection function
    if (!isMobile) {
        ParallaxScroll.init();
    }

@alumbo
Copy link
Owner

alumbo commented Aug 17, 2016

merci Phil :p

Le mer. 17 août 2016 à 14:53, Philippe Barbosa notifications@github.com a
écrit :

There's no problem to disable the plugin for mobile without updating the
plugin.
You just have to init the plugin only for desktop, with libraires as
modernizr (Modernizr.mq(mq)) or user-agent sniffing. An example :

var isMobile; // mobile detection function
if (!isMobile) {
    ParallaxScroll.init();
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACPRJm9mNXt3odROjWHySbLb3xyr0faDks5qgwRjgaJpZM4JhCdu
.

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

4 participants