Pimp pointer
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
:root {
|
||||
--pointer-scale-factor: 0.025;
|
||||
/* 2.5% of viewport height */
|
||||
}
|
||||
|
||||
.cursor-dot,
|
||||
.cursor-dot-outline {
|
||||
pointer-events: none;
|
||||
@@ -6,15 +11,23 @@
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
transform: translate(-50%, -50%);
|
||||
transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
|
||||
transition: opacity 0.4s ease-in-out;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.cursor-dot {
|
||||
font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands";
|
||||
font-weight: 900;
|
||||
color: rgb(46, 46, 46);
|
||||
font-size: 16px;
|
||||
color: red;
|
||||
font-size: calc(var(--pointer-scale-factor) * 100vh);
|
||||
}
|
||||
|
||||
.cursor-dot.visible {
|
||||
opacity: 0.8 !important;
|
||||
}
|
||||
|
||||
.cursor-dot.hidden {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
.no-cursor {
|
||||
|
||||
Reference in New Issue
Block a user