fix new resources
This commit is contained in:
@ -23,12 +23,14 @@ function cursor() {
|
||||
cursor.style.backgroundColor = "var(--color-1)";
|
||||
cursor.style.position = "absolute";
|
||||
cursor.style.borderRadius = "100%";
|
||||
// cursor.style.filter = "blur(40px)";
|
||||
cursor.style.filter = "blur(40px)";
|
||||
cursor.style.opacity = "1";
|
||||
cursor.style.pointerEvents = "none";
|
||||
document.body.appendChild(cursor);
|
||||
document.addEventListener("mousemove", (e) => {
|
||||
cursor.style.top = `${e.clientY - 15}px`;
|
||||
cursor.style.left = `${e.clientX - 15}px`;
|
||||
console.log(e);
|
||||
cursor.style.top = `${e.pageY - 15}px`;
|
||||
cursor.style.left = `${e.pageX - 15}px`;
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user