I am stuck… i don’t know how to create this… it’s pretty complicated i guess.
I have 2 PNG pictures one iPad and one iMac i am trying to place them on each other and in the display i need to add another layer to show a scrolling website.
Yes i have managed to fix it, however i am facing a problem now. When i SCROLL DOWN the image in the iPad JUMPS TOO much down and then scrolls normal… i have looked into the JQUery plugin… tried adjusting but didn’t manage to solve this problem… it should smooth scroll any day and scroll from top down while scrolling the website.
The JQuery:
// Parallax Devices Scrolling
var $desktopScreenshot = $('.desktop-screenshot');
var $mobileScreenshot = $('.mobile-screenshot');
var windowScroll;
function parallaxBrowsers() {
windowScroll = $(this).scrollTop();
$desktopScreenshot.css({
'background-position' : 'center ' + (-windowScroll/5)+"px"
});
$mobileScreenshot.css({
'background-position' : 'center ' + (-windowScroll/10)+"px"
});
}
if (!Modernizr.touch) {
/* Triggers the Parallax Devices Scrolling */
$(window).scroll(function() {
parallaxBrowsers();
});
};