-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepeating-study.html
121 lines (103 loc) · 2.23 KB
/
repeating-study.html
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
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Art | Repeating Study</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<style>
@keyframes jog {
0% {
transform: translate(0, 0);
}
25% {
transform: translate(20px, 20px);
}
50% {
transform: translate(40px, 20px);
}
75% {
transform: translate(60px, 0px);
}
}
@keyframes jag {
90% {
transform: translate(50px, 50px);
}
100% {
transform: translate(0, 0);
}
}
body {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
body>div {
display: grid;
justify-items: center;
align-items: center;
height: 100vh;
/* background: linear-gradient(#fff8ef, #fff) */
}
.content {
display: flex;
justify-content: center;
align-items: center;
}
.hey {
position: relative;
width: 100px;
height: 100px;
background-color: olive;
/* margin-right: -50px; */
}
.hey::after {
position: absolute;
top: 0;
right: 0;
width: 50px;
height: 50%;
content: '';
background-color: rgba(0, 0, 0, 0.5);
animation-duration: 3s;
animation-name: jag;
animation-delay: 2s;
/* animation-iteration-count: infinite; */
animation-timing-function: linear;
}
.hey:hover::after {
z-index: 2;
animation-duration: 3s;
animation-name: jog;
animation-iteration-count: 5;
animation-timing-function: linear;
}
</style>
<header class="art-page-header">
<a href="index.html" class="app-text-link">
<span>index.html</span>
</a>
</header>
<div>
<div class="content">
<div class="hey"></div>
<div class="hey"></div>
<div class="hey"></div>
<div class="hey"></div>
<div class="hey"></div>
</div>
<div class="content">
<div class="hey"></div>
<div class="hey"></div>
<div class="hey"></div>
<div class="hey"></div>
<div class="hey"></div>
</div>
</div>
</body>
</html>