-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcursor.css
More file actions
109 lines (107 loc) · 1.85 KB
/
cursor.css
File metadata and controls
109 lines (107 loc) · 1.85 KB
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
99
100
101
102
103
104
105
106
107
108
109
body {
cursor: 0;
height: 100vh;
width: 100vw;
overflow: hidden;
}
@media (min-width: 768px) {
*,
body {
cursor: none;
}
}
.trailer {
position: fixed;
width: 6px;
height: 6px;
overflow: hidden;
font-weight: bold;
transform: width 1s linear, height 1s linear;
color: transparent;
}
.trailer.move {
width: 30px;
height: 30px;
font-weight: bold;
color: #5da2fc;
font-size: 14px !important;
text-shadow: 3px 3px 5px black;
transform: width 1s linear, height 1s linear;
}
.cursor {
z-index: 10000;
width: 25px;
height: 25px;
position: absolute;
border-radius: 50%;
}
.cursor .bg {
width: 0px;
height: 0px;
top: 0;
left: 0;
transform: translate(-50%, -50%);
border-radius: 50%;
position: absolute;
z-index: -1;
}
.cursor::after {
content: "";
position: absolute;
left: 0;
top: 0;
border: 17px solid;
filter: blur(5px);
border-color: black transparent transparent transparent;
transform-origin: top left;
transform: rotate(22deg) translateY(2px) skewX(5deg);
z-index: -1;
}
.animate {
animation: animation 0.5s linear infinite alternate;
border: 5px solid;
opacity: 0.2;
}
.cursor img {
width: 100%;
}
@media (max-width: 767px) {
.cursor,
.cursor .bg,
.cursor .bg::after,
.cursor img,
.trailer {
display: none !important;
}
}
@keyframes animation {
from {
width: 0;
height: 0;
}
to {
width: 30px;
height: 30px;
}
}
.hovering {
animation: hovering 0.7s linear infinite alternate !important;
}
@keyframes hovering {
0% {
transform: scale(1.1);
}
100% {
transform: scale(0.9);
}
}
.block {
width: 400px;
height: 400px;
margin: auto;
background-color: red;
transition: 1s linear;
}
.block:hover {
transform: scale(1.2);
}