Advertisement
Guest User

Untitled

a guest
May 29th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. $(document).ready(function () {
  2. $(".Class OR Id").mousemove(function (e) {
  3. var moveX = (e.pageX * -1 / 25);
  4. var moveY = (e.pageY * -1 / 25)
  5. $(this).css("background-position", moveX + "px " + moveY + "px");
  6. });
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement