make shork absolute
This commit is contained in:
parent
ea6fc08056
commit
a0e0703704
4 changed files with 6 additions and 6 deletions
|
|
@ -10,8 +10,8 @@ shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_
|
||||||
|
|
||||||
let mouse = {x: 0, y: 0};
|
let mouse = {x: 0, y: 0};
|
||||||
onmousemove = function(e){
|
onmousemove = function(e){
|
||||||
mouse.x = e.clientX;
|
mouse.x = e.pageX;
|
||||||
mouse.y = e.clientY;
|
mouse.y = e.pageY;
|
||||||
}
|
}
|
||||||
|
|
||||||
let direction = 0;
|
let direction = 0;
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
#shork {
|
#shork {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
left: -36px;
|
left: -36px;
|
||||||
top: -32px;
|
top: -32px;
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_
|
||||||
|
|
||||||
let mouse = {x: 0, y: 0};
|
let mouse = {x: 0, y: 0};
|
||||||
onmousemove = function(e){
|
onmousemove = function(e){
|
||||||
mouse.x = e.clientX;
|
mouse.x = e.pageX;
|
||||||
mouse.y = e.clientY;
|
mouse.y = e.pageY;
|
||||||
}
|
}
|
||||||
|
|
||||||
let direction = 0;
|
let direction = 0;
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
#shork {
|
#shork {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
left: -36px;
|
left: -36px;
|
||||||
top: -32px;
|
top: -32px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue