-
Notifications
You must be signed in to change notification settings - Fork 76
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
Great plugin! Making it work for mobile? #1
Comments
Hi @sandman21, I'm going to think about percentages in addition of pixels parameters and the ability to disable effects easily. |
Hello
|
First of all, thanks for this amazing plugin. i too would love having percentages in the values and ability to turn it off when not required (aka mobile) to work with responsive layouts. |
Disabling the plugin for mobile is relatively simple to do. The following code can be implemented after checking window width on load or resize.
Of course this would also remove any other inline styling you might have, but it will work for general use. Cheers. |
I made a jQuery script that actually works (you'll need to modify it to stop parallaxing at the right width though, you'll also need to give each thing its own id.):
That said, this plugin would be nice if it you could specify the start and finish of the parallax as a percentage of the element height and then scale to fit accordingly. |
You can stick with full Javascript and block it also, seems a bit extensive to remove the attribute. This also accounts for multiple browsers. Not 100% certain but I think it covers all your bases pretty simply and you can just replace this with the first few lines of your code. `$(function() {
});` I specified those sizes because any screen size smaller than that seems to be al janky, things still seem to flow alright on anything that size or bigger depending on how much movement you have. Also accounts for ipads and how they're positioned. Have not tested it on transitioning to portrait on ipad after loading it in landscape. |
Hi,
Love this plugin it is exactly what I needed!
The only issue is I can't figure out how to make it responsive. I'm not attached to having the images remain parallax on touch screens so if I can just disable the plugin this is fine too.
Thanks,
Matt
The text was updated successfully, but these errors were encountered: