Skip to content

Commit 6616a31

Browse files
add files (#2938)
Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
1 parent 06fd051 commit 6616a31

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

Art/MoaadAmer-circles/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Circles Animation</title>
7+
<link rel="stylesheet" href="styles.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<div class="red circle"></div>
12+
<div class="green circle"></div>
13+
<div class="blue circle"></div>
14+
</div>
15+
16+
</body>
17+
</html>

Art/MoaadAmer-circles/meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "circles",
3+
"githubHandle": "MoaadAmer"
4+
}

Art/MoaadAmer-circles/styles.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
body {
2+
margin: 0;
3+
width: 100vw;
4+
height: 100vh;
5+
display: flex;
6+
justify-content: center;
7+
align-items: center;
8+
}
9+
10+
.container {
11+
width: 500px;
12+
height: 500px;
13+
display: flex;
14+
flex-direction: column;
15+
justify-content: center;
16+
border: 3px solid black;
17+
border-radius: 50%;
18+
}
19+
20+
.circle {
21+
width: 2em;
22+
height: 2em;
23+
border-radius: 50%;
24+
25+
animation-name: move;
26+
animation-duration: 5s;
27+
animation-iteration-count: infinite;
28+
animation-timing-function: linear;
29+
30+
}
31+
32+
.red {
33+
background-color: red;
34+
}
35+
36+
.green {
37+
background-color: green;
38+
}
39+
40+
.blue {
41+
background-color: blue;
42+
}
43+
44+
/* The animation code */
45+
@keyframes move {
46+
0% {
47+
translate: 10px 10px;
48+
}
49+
50+
25% {
51+
translate: 20px 20px;
52+
}
53+
54+
50% {
55+
translate: 30px 30px;
56+
}
57+
58+
75% {
59+
translate: 40px 40px;
60+
}
61+
62+
100% {
63+
translate: 50px 50px;
64+
65+
}
66+
}

0 commit comments

Comments
 (0)