2022-10-19 08:05:51 +00:00
|
|
|
.cursorWrapper {
|
2022-10-17 00:49:05 +00:00
|
|
|
--cursor-x1: "0px";
|
|
|
|
|
--cursor-x2: "0px";
|
|
|
|
|
--cursor-y1src: "0px";
|
|
|
|
|
--cursor-y2src: "0px";
|
|
|
|
|
--cursor-offset-y: "0px";
|
|
|
|
|
--cursor-drag-distance: "0px";
|
|
|
|
|
--cursor-drag-angle: "0deg";
|
|
|
|
|
--cursor-drag-width: "0px";
|
|
|
|
|
--cursor-drag-height: "0px";
|
|
|
|
|
|
|
|
|
|
--cursor-height: 18px;
|
|
|
|
|
--cursor-y1: calc(var(--cursor-y1src) + var(--cursor-offset-y));
|
|
|
|
|
--cursor-y2: calc(var(--cursor-y2src) + var(--cursor-offset-y));
|
|
|
|
|
--cursor-visibility: "hidden";
|
|
|
|
|
/* --cursor-margin-height: calc(var(--header-height)); */
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-07 04:52:39 +00:00
|
|
|
.x-cursor {
|
2022-08-31 03:02:12 +00:00
|
|
|
position: relative;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
height: var(--cursor-height);
|
|
|
|
|
width: 8px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
user-select: none;
|
|
|
|
|
background: var(--text-normal);
|
|
|
|
|
transform: translate3d(var(--cursor-x2), var(--cursor-y2), 0);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
visibility: var(--cursor-visibility);
|
2022-07-08 09:02:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.x-cursor:after {
|
2022-08-31 03:02:12 +00:00
|
|
|
content: "";
|
|
|
|
|
height: var(--cursor-drag-height);
|
|
|
|
|
width: var(--cursor-drag-width);
|
|
|
|
|
display: inline-block;
|
|
|
|
|
user-select: none;
|
|
|
|
|
background: linear-gradient(to right, var(--text-normal), transparent);
|
|
|
|
|
transform: rotate(var(--cursor-drag-angle));
|
|
|
|
|
transform-origin: 4px center;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
pointer-events: none;
|
2022-07-07 04:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.x-cursor0 {
|
2022-08-31 03:02:12 +00:00
|
|
|
animation: a1 75ms cubic-bezier(0.34, 1.26, 0.84, 1) 0s both;
|
2022-07-07 04:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.x-cursor1 {
|
2022-08-31 03:02:12 +00:00
|
|
|
animation: a2 75ms cubic-bezier(0.34, 1.26, 0.84, 1) 0s both;
|
2022-07-07 04:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
2022-08-31 03:02:12 +00:00
|
|
|
|
|
|
|
|
|
2022-07-08 09:02:27 +00:00
|
|
|
.cursorWrapper {
|
2022-08-31 03:02:12 +00:00
|
|
|
display: block;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
user-select: none;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
position: fixed;
|
2022-10-17 00:49:05 +00:00
|
|
|
top: var(--header-height);
|
2022-08-31 03:02:12 +00:00
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2022-07-07 04:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes a1 {
|
2022-08-31 03:02:12 +00:00
|
|
|
0% {
|
2022-10-17 00:49:05 +00:00
|
|
|
transform: translate3d(var(--cursor-x1), calc(var(--cursor-y1) - var(--header-height)), 0);
|
2022-08-31 03:02:12 +00:00
|
|
|
background-color: var(--text-normal);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
4% {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
80% {
|
|
|
|
|
opacity: 0.95;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
90% {
|
2022-10-17 00:49:05 +00:00
|
|
|
transform: translate3d(var(--cursor-x2), calc(var(--cursor-y2) - var(--header-height)), 0);
|
2022-08-31 03:02:12 +00:00
|
|
|
background-color: var(--text-normal);
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
100% {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
2022-07-07 04:52:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes a2 {
|
2022-08-31 03:02:12 +00:00
|
|
|
0% {
|
2022-10-17 00:49:05 +00:00
|
|
|
transform: translate3d(var(--cursor-x1), calc(var(--cursor-y1) - var(--header-height)), 0);
|
2022-08-31 03:02:12 +00:00
|
|
|
background-color: var(--text-normal);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
4% {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
80% {
|
|
|
|
|
opacity: 0.95;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
90% {
|
2022-10-17 00:49:05 +00:00
|
|
|
transform: translate3d(var(--cursor-x2), calc(var(--cursor-y2) - var(--header-height)), 0);
|
2022-08-31 03:02:12 +00:00
|
|
|
background-color: var(--text-normal);
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
100% {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|