"bacground move "
Bootstrap 3.3.0 Snippet by ALIMUL AL RAZY

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div id="top-image"></div> </div> </div>
#top-image { background:url('https://unsplash.it/1200/900/?random') -25px -50px; position:fixed ; top:0; width:100%; z-index:0; height:100%; background-size: calc(100% + 50px); }
$(document).ready(function() { var movementStrength = 25; var height = movementStrength / $(window).height(); var width = movementStrength / $(window).width(); $("#top-image").mousemove(function(e){ var pageX = e.pageX - ($(window).width() / 2); var pageY = e.pageY - ($(window).height() / 2); var newvalueX = width * pageX * -1 - 25; var newvalueY = height * pageY * -1 - 50; $('#top-image').css("background-position", newvalueX+"px "+newvalueY+"px"); }); });

Related: See More


Questions / Comments: