I am using the Skrollr library to construct a Parallax website, however when viewed on mobile devices, I get mixed results. On an iPhone the Parallax effect sort of works, but the positions of the images are in a completely different place to when viewed on a desktop.
On Android, the Parallax effect just doesn't work at all.
Slightly annoying as the examples I downloaded from the Skrollr website do not work on mobiles either, yet the main Skrollr website does work.
Is there anything obvious that I have missed that would prevent the site from working on mobiles?
Example URL
http://wickywills.com/testing/skrollr/simple-parallax.html
HTML
<div id="skrollr-body">
<div id="slide-1" class="slide"
data-center="background-position: 0% 0px;"
data-top-bottom="background-position: 0% -200px;">
<p>slide 1</p>
<p>slide 1</p>
<p>slide 1</p>
<p>slide 1</p>
<p>slide 1</p>
<p>slide 1</p>
<p>slide 1</p>
<p>slide 1</p>
</div>
<div id="slide-2" class="slide"
data-0-bottom-top="background-position: 0% 0px;"
data-0-top-bottom="background-position: 0% -300px;">
<p>slide 2</p>
<p>slide 2</p>
<p>slide 2</p>
<p>slide 2</p>
<p>slide 2</p>
<p>slide 2</p>
<p>slide 2</p>
<p>slide 2</p>
</div>
<div id="slide-3" class="slide"
data-center="background-position: 0% 0px;"
data-top-bottom="background-position: 0% -100px;"
data-anchor-target="#slide-3">
<p>slide 3</p>
<p>slide 3</p>
<p>slide 3</p>
<p>slide 3</p>
<p>slide 3</p>
<p>slide 3</p>
<p>slide 3</p>
<p>slide 3</p>
</div>
</div>
<script src="scripts/jquery.skrollr.min.js"></script>
CSS
#slide-1 { background: url(images/bg-spinnaker.jpg) fixed center center no-repeat; }
#slide-2 { background: url(images/bg-city.jpg) fixed right center no-repeat; }
#slide-3 { background: url(images/bg-laptop.jpg) fixed center center no-repeat; }
.slide { border-bottom: 5px solid #00f; min-height: 600px; }
JS
var s = skrollr.init();
background-position:fixedisn't really supported on mobile, it will definitely not work with skrollr, because skrollr-body is translated using CSS transforms. Inside elements which use CSS transform, fixed positioning doesn't work at all as per CSS spec.background-attachment:fixed