-
Notifications
You must be signed in to change notification settings - Fork 0
/
hover.css
103 lines (89 loc) · 1.84 KB
/
hover.css
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
# projects
project display for portfolio
integration with webpack to come etc and so forth.
.borderFade {
padding-bottom: 1px;
-webkit-transition: all 200ms ease;
color: #474E51;
position: relative;
}
.borderFade::after {
content: '';
position: absolute;
height: 2px;
width: 100%;
left: 0;
bottom: 0;
background: #5778F3;
transition: all 200ms ease;
}
.borderFade:hover::after {
opacity: 0;
-webkit-transform: translateY(3px);
-moz-transform: translateY(3px);
-ms-transform: translateY(3px);
-o-transform: translateY(3px);
transform: translateY(3px);
}
.borderMarker {
position: relative;
}
.borderMarker::after {
content: "";
position: absolute;
z-index: -1;
top: 70%;
left: -0.1px;
right: -0.1px;
bottom: 0;
transition: top .1s ease-in-out;
background-color: rgba(87,120,243,0.5);
}
.borderMarker:hover::after {
top: 0;
}
@keyframes donut-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.donutSpinner {
display: inline-block;
border: 4px solid rgba(0, 0, 0, 0.1);
border-left-color: #5778F3;
border-radius: 50%;
width: 30px;
height: 30px;
animation: donut-spin 1.2s linear infinite;
}
.siblingFade span {
padding: 0 1rem;
transition: opacity 0.2s;
}
.siblingFade:hover span:not(:hover) {
opacity: 0.5;
}
.borderLeftRight {
display: inline-block;
position: relative;
color: #474E51;
}
.borderLeftRight::after {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: #5878F3;
transform-origin: bottom right;
transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.borderLeftRight:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}