-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbg.js
More file actions
23 lines (23 loc) · 678 Bytes
/
bg.js
File metadata and controls
23 lines (23 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(function(a) {
a(document)
.on("ready", function() {
var h = 23;
var g = h / a(document)
.height();
var i = h / a(document)
.width();
a("body")
.on("mousemove", function(j) {
var n = j.pageX - (a(document)
.width() / 200),
o = j.pageY - (a(document)
.height() / 200),
l = i * n * -1,
m = g * o * -1,
k = a(".lm-animated-bg");
k.css({
"background-position": "calc( 50% + " + l + "px ) calc( 50% + " + m + "px )",
});
});
})
})(jQuery);