jquery - Background-x position on stellar JS -


i'm trying background-x have @ 50%, i've read stellar documentation , seen demo. unfortunately change x position 50%. missing?

this container image

<div class="break stageone" data-stellar-background-ratio="0.5"></div> 

this default stellar js initiate

$.stellar({     horizontalscrolling: false,     verticaloffset: 0 }); 

my class holds background image

.break{ background-attachment: fixed; background-position: 50% 0; background-repeat: no-repeat; position: relative; float: left; width: 100%; height: 700px; } 

my background image

.stageone{ background: url(http://matthewduclos.files.wordpress.com/2012/04/canoncine.jpg); margin-top: 60px; } 

stellar.js nothing problem. because use background: url after background-position: 50% 0;

just replace it:

.stageone{ background: url(http://matthewduclos.files.wordpress.com/2012/04/canoncine.jpg); margin-top: 60px; } .break{ background-attachment: fixed; background-position: 50% 0; background-repeat: no-repeat; position: relative; float: left; width: 100%; height: 700px; } 

or use background-image instead:

background-image: url(http://matthewduclos.files.wordpress.com/2012/04/canoncine.jpg); 

demo


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -