-
Notifications
You must be signed in to change notification settings - Fork 0
/
logoiframe.html
98 lines (83 loc) · 3.17 KB
/
logoiframe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/*SCROLLBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRR*/
/* Estilos para navegadores basados en WebKit (Chrome, Safari) */
::-webkit-scrollbar {
width: 12px; /* Ancho de la barra deslizante */
}
::-webkit-scrollbar-thumb {
background-color: #0e1119; /* Color del pulgar (la parte móvil de la barra) */
border-radius: 6px; /* Borde redondeado del pulgar */
}
/* Estilos para Firefox */
/* Nota: Firefox utiliza una sola propiedad para estilizar la barra deslizante */
/* Establece el color del fondo de la barra deslizante en Firefox */
/* Estos estilos también afectarán a la barra deslizante en Edge e IE */
* {
scrollbar-color: #151924 #151924;
scrollbar-width: thin;
cursor: none;
}
body{
cursor: none;
}
#cursor {
position: fixed;
z-index: 100;
width: 2.8vh;
display: none;
height: 2.8vh;
border-radius: 50%;
background-color: #51e153;
mix-blend-mode: difference;
pointer-events: none;
transition: transform 0.2s ease-out;
transform-origin: 50% 50%;
}
/*@media only screen and (max-width: 1100px) {
#cursor{
visibility: hidden;
}
}*/
</style>
<script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@v0.163.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@v0.163.0/examples/jsm/"
}
}
</script>
<style>
body{
margin: 0;
}
</style>
</head>
<body>
<div id="cursor"></div>
</body>
<script type="module" src="./main.js"></script>
<!--CURSOOORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR-->
<script>
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener('mousemove', function (e) {
const { clientX, clientY } = e;
const cursorSize = 20;
const cursorHalfSize = cursorSize / 8;
const cursorX = clientX - cursorHalfSize;
const cursorY = clientY - cursorHalfSize;
cursor.style.left = `${cursorX}px`;
cursor.style.top = `${cursorY}px`;
});
});
</script>
<script>
</script>
</html>