I got the hang of this, but I notice that ANY sample sit using this does not work on IPad or IPhone. I did a search for the closest updates to either canvas or the JQuery plug in and cannot find anything that will work on those platforms. Desktop versions look great but this is a hard sell to clients who want this in re designed sites but will surely back away once they know it does not work well in IP or IPh.
Anybody have any other info on this?
I definitely wouldn’t recommend using parallax scrolling for iOS in first place. There’s two things that Safari iOS has that I always get annoyed about:
– no fixed-position background images (by default it reverts to no-repeat background)
– floating elements (iFrames, divs) with scrollbars are near impossible to scroll by dragging a scrollbar (you’ll have to use two fingers to drag the content)
Although in theory, these things may not have anything to do with the parallax scrolling problems, it does show that mobile just uses different rules when it comes to scrolling.
Instead of trying to make mobile browsing the same experience as desktop (including all bells and whistles), it will save you a lot of headaches, time, tears, band-aids, broken keyboards and yelling if you just try to sell the client that mobile browsing is simply a little different and comes with some restrictions.
We recently released a site which does parallax scrolling on iPad. There is a bit of an explanation, and a video of it in use here: http://www.aerian.com/portfolio/one-potato/one-potato-html5-website
and the site itself if you have an iPad to play with:
If you’d like some help on this, IM me on here.
There’s a jQuery parallax plugin called [Stellar.js](http://markdalgleish.com/projects/stellar.js/) which has [a demo](http://markdalgleish.com/projects/stellar.js/demos/ios.html) that works in tandem with [Scrollability](http://joehewitt.github.com/scrollability/) to achieve a touch-friendly parallax scrolling effect.
That said, that demo also works with click-and-drag in desktop browsers, so you’d probably also want to include some code that checks for touch support and switches between scrolling methods accordingly.
Mark Dalgleish who developped stellar.js explained really well how to achieve this using iScroll.js to simulate an iOS scroll.
Slides here : [Your text to link here…](http://markdalgleish.com/presentations/embracingtouch/ “Embracing touch”)
YouTube [Your text to link here…](http://www.youtube.com/watch?v=Ii5AkRNSVHg&feature=youtube_gdata_player “Hère”)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".