Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $(".Class OR Id").mousemove(function (e) {
- var moveX = (e.pageX * -1 / 25);
- var moveY = (e.pageY * -1 / 25)
- $(this).css("background-position", moveX + "px " + moveY + "px");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement