Skip to content

Commit 06fd051

Browse files
adding my art to project (#2928)
* adding my art to project * [ PR maintenance ] Fix and correct PR to close it --------- Co-authored-by: Laureline <laurelinedev@gmail.com> Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
1 parent 04d7278 commit 06fd051

File tree

3 files changed

+140
-0
lines changed

3 files changed

+140
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="preconnect" href="https://fonts.googleapis.com">
7+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8+
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
9+
<link rel="stylesheet" type="text/css" href="styles.css">
10+
11+
12+
13+
14+
<title>Animation-Nation</title>
15+
</head>
16+
<body>
17+
<h1 class="position">Animation Chaos !</h1>
18+
<div class="container">
19+
<div class="circle"></div>
20+
<div class="square"></div>
21+
<span class="triangle"></span>
22+
</div>
23+
</body>
24+
</html>
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "Animation-Choas",
3+
"githubHandle": "Steveo1975"
4+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
2+
body {
3+
background-color: red;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
7+
height: 100vh;
8+
margin: 0;
9+
}
10+
11+
h1 {
12+
font-family: "Bangers", serif;
13+
font-weight: 400;
14+
font-style: normal;
15+
color: black;
16+
text-shadow: 3px 3px 5px grey;
17+
font-size: 500%;
18+
}
19+
20+
21+
.position {
22+
position: absolute;
23+
top: 0;
24+
left: 50%;
25+
transform: translateX(-50%);
26+
text-align: center;
27+
width: 100%;
28+
}
29+
30+
31+
.container {
32+
display: flex;
33+
flex-wrap: wrap;
34+
justify-content: space-around;
35+
align-items: center;
36+
width: 100%;
37+
}
38+
39+
.circle {
40+
background-color: purple;
41+
width: 200px;
42+
height: 200px;
43+
border-radius: 50%;
44+
animation:bounce 2s ease 20;
45+
}
46+
47+
48+
@keyframes bounce {
49+
0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
50+
40%{transform: translateY(-50px);}
51+
60%{transform: translateY(-50px);}
52+
}
53+
54+
55+
56+
57+
.square {
58+
background-color: blue;
59+
width: 200px;
60+
height: 200px;
61+
animation:pulse 2s 20;
62+
}
63+
@keyframes pulse {
64+
0%,
65+
100% {
66+
transform: rotate(-45deg) scale(1);
67+
}
68+
50% {
69+
transform: rotate(-45deg) scale(1.5);
70+
}
71+
}
72+
73+
74+
75+
76+
.triangle {
77+
width: 0;
78+
height: 0;
79+
border-bottom: 200px solid green;
80+
border-left: 100px solid transparent;
81+
border-right: 100px solid transparent;
82+
animation-duration: 2s;
83+
animation-name: spin;
84+
animation-timing-function: ease-in-out;
85+
animation-delay: 1s;
86+
animation-iteration-count: 20;
87+
animation-direction:normal;
88+
animation-fill-mode:forwards; ;
89+
}
90+
91+
@keyframes spin {
92+
100% {
93+
transform: rotate(360deg);
94+
}
95+
}
96+
97+
98+
99+

0 commit comments

Comments
 (0)