My code doesn't seem to be firing, for some odd reason, I have no idea why. Mouse movement is supposed to cause the background to shift, but nothing happens.
<html>
<div id="pageBg">
</div>
</html>
<style>
#pageBg {
background: url(http://****.com/tes.jpg) no-repeat 0 0
scroll;
height: auto;
left: 0;
min-height: 1920px;
min-width: 1080px;
overflow: hidden;
position: fixed;
top: 0;
width: 100%;
}
</style>
<script>
$(document).ready(function(){
$('#pageBg').mousemove(function(e){
var mousePosX = (e.pageX/$(window).width())*100;
$('#pageBg').css('background-position-x', mousePosX +'%');
var mousePosY = (e.pageY/$(window).height())*100;
$('#pageBg').css('background-position-y', mousePosY +'%');
});
});
</script>