-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathsnakeBorder.html
More file actions
49 lines (42 loc) · 746 Bytes
/
Copy pathsnakeBorder.html
File metadata and controls
49 lines (42 loc) · 746 Bytes
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
<style>
div {
width: 190px;
height: 190px;
background: #ddd;
position: relative;
}
div:before,
div:after {
position: absolute;
content: "";
left: -5px;
right: -5px;
top: -5px;
bottom: -5px;
border: 5px solid #ffae0088;
}
div:before {
animation: move 5s linear infinite;
}
div:after {
border-color: #00ff40d5;
animation: move 5s linear infinite -2.5s;
}
@keyframes move {
0%,
100% {
clip: rect(0, 200px, 5px, 0);
}
25% {
clip: rect(0, 200px, 200px, 195px);
}
50% {
/* border-color: #00ff0088; */
clip: rect(195px, 200px, 200px, 0);
}
75% {
clip: rect(0, 5px, 200px, 0px);
}
}
</style>
<div></div>