Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.
I use jquery-backstretch to change the body background after windows is loaded:
$("#body_page").backstretch(["/images/bg_contact.jpg"], {centeredY: false, fade: 2000});
The body element in DOM:
<body id="body_page" class="body-default">
I wanted to add -webkit-transform: translate3d(0,0,0); to accelerate the page display, but with this option on .body-default, the backstretch background is not fixed anymore. And yet, the body-default background is till fixed with -webkit-transform: translate3d(0,0,0);.
Is there any chance to accelerate the display using -webkit-transform: translate3d(0,0,0); or something else with backstretch ?
Here is an example: https://jsfiddle.net/7u83fwcs/5/, if you remove -webkit-transform: translate3d(0,0,0); fixed attachment will work
Hello,
I use jquery-backstretch to change the body background after windows is loaded:
$("#body_page").backstretch(["/images/bg_contact.jpg"], {centeredY: false, fade: 2000});
The CSS of the body:
The body element in DOM:
<body id="body_page" class="body-default">
I wanted to add-webkit-transform: translate3d(0,0,0);
to accelerate the page display, but with this option on .body-default, the backstretch background is not fixed anymore. And yet, the body-default background is till fixed with-webkit-transform: translate3d(0,0,0);
.Is there any chance to accelerate the display using
-webkit-transform: translate3d(0,0,0);
or something else with backstretch ?Here is an example: https://jsfiddle.net/7u83fwcs/5/, if you remove
-webkit-transform: translate3d(0,0,0);
fixed attachment will workThanks, Vincent.