If I understand your question correctly, this is easy enough. You can use this little one jquery:
$(window).scroll(function (event) {
var scroll = $(window).scrollTop();
$('.left').css('left', - scroll / 4);
$('.right').css('right', - scroll / 4);
});
(), right left css. ( mumber , "", css, "" )
$(window).scroll(function (event) {
var scroll = $(window).scrollTop();
$('.left').css('left', - scroll / 4);
$('.right').css('right', - scroll / 4);
});
html,
body {
height: 2000px;
width: 100%;
margin:0;
}
.left {
position: fixed;
top: 0;
height: 100%;
width: 200px;
background-color: #111111;
}
.right {
position: fixed;
right: 0;
top: 0;
height: 100%;
width: 200px;
background-color: #111111;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<div class="left"></div>
<div class="right"></div>
Hide resultJSFIDDLE