-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.css
54 lines (52 loc) · 908 Bytes
/
test.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
.bb, .bb::before, .bb::after {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.bb {
width: 50%;
height: 100vh;
margin: auto;
background: rgba(0, 0, 0, .1);
color: #69ffff;
box-shadow: inset 0 0 0 1px rgba(105, 255, 255, .5);
}
.bb::before, .bb::after {
content: '';
z-index: -1;
margin: 5%;
box-shadow: inset 0 0 0 2px;
animation: clipMe 8s linear infinite;
}
.bb::before {
animation-delay: -4s;
}
.bb:hover::after, .bb:hover::before {
background-color: rgba(255, 0, 0, .3);
}
@keyframes clipMe {
0%, 100% {
clip: rect(0px, 100vw, 10vh, 0px);
}
25% {
clip: rect(0px, 2px, 100vh, 0px);
}
50% {
clip: rect(90vh, 90vw, 100vh, 0px);
}
75% {
clip: rect(0px, 100vw, 100vh, 90vw);
}
}
html, body {
height: 100%;
}
body {
position: relative;
background-color: #0f222b;
}
*, *::before, *::after {
box-sizing: border-box;
}