-
Notifications
You must be signed in to change notification settings - Fork 69
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
Parallax mixins #55
Parallax mixins #55
Conversation
I'm happy to add something like this to Toolkit, but I'm not sure if parallax is the correct way to describe this. While perspective is a big part of parallax, so is the movement of items at different speeds. We know that we can't accomplish this without JavaScript, but it also means that this isn't true parallax. Maybe something like perspective or depth would be better unless we'd like to add some JavaScript to accomplish the different scroll speed. I'd also like to see support for |
This is movement at different speeds, accomplished without JavaScript, and this IS true parallax. |
Do you have a demo where I can more clearly see that? The linked demo you sent doesn't appear to have the items scrolling at different speeds. I expect to see larger items (closer) to be moving faster that smaller items (further) and the distances between them changing as a result. |
Are you scrolling through the demo? Because every element moves at a different speed on scroll. What browser are you using? Works in Chrome and Safari (iOS as well) for me although just tested in Firefox and it appears to be broken. Need to play around with that a bit more. |
Okay, I see the disconnect. In Safari and iOS, this is bloody fantastic! |
Pushed changes, should work now. I wasn’t preserving 3D as bulletproof as I could have it. |
Can you push an update to the pen so I can see it in action? |
Yeah it should all be up to date: http://codepen.io/scottkellum/pen/bHEcA |
Working in Firefox now, still doesn't appear to be working in Chrome 32/Opera though |
hm, working on Chrome 32.0.1700.77 for me. Can’t figure out how to get it working in Opera… I may try later. |
Okay, I'm going to merge it in, but I still can't seem to get it to work in any Blink powered browser (despite the fact that it appears to be applying the properties). Thanks for the awesomeness. |
Just tried in 34.0.1807.0 canary and it worked. Maybe it’s a Chrome retina issue. |
Wouldn't that be fantastic? 👅 |
Add parallax mixins like this to Toolkit along with docs.