Skip to content

Commit

Permalink
just adding my art to the project (#2893)
Browse files Browse the repository at this point in the history
  • Loading branch information
raonycavalcante authored Dec 11, 2024
1 parent 1fefe52 commit 279c0a5
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Art/raonycavalcante-Brazilian-flag/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Brazilian Flag Animation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="flag">
<div class="green">
<div class="yellow">
<div class="blue">
<div class="circle"></div>
</div>
</div>
</div>
</div>
</body>
</html>
4 changes: 4 additions & 0 deletions Art/raonycavalcante-Brazilian-flag/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "Brazilian-flag",
"githubHandle": "raonycavalcante"
}
68 changes: 68 additions & 0 deletions Art/raonycavalcante-Brazilian-flag/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #87CEEB; /* Sky background */
}

.flag {
position: relative;
width: 300px;
height: 200px;
animation: wave 2s infinite linear;
overflow: hidden;
}

.green {
position: absolute;
width: 100%;
height: 100%;
background-color: #009C3B;
}

.yellow {
position: absolute;
top: 25%;
left: 15%;
width: 70%;
height: 50%;
background-color: #FFDF00;
transform: rotate(45deg);
}

.blue {
position: absolute;
top: 50%;
left: 50%;
width: 50%;
height: 50%;
background-color: #002776;
border-radius: 50%;
transform: translate(-50%, -50%);
}

.circle {
position: absolute;
top: 50%;
left: 50%;
width: 60%;
height: 60%;
border: 2px solid #fff;
border-radius: 50%;
transform: translate(-50%, -50%);
}

@keyframes wave {
0% {
transform: rotate(0) skewX(0) scaleY(1);
}
50% {
transform: rotate(-1deg) skewX(-5deg) scaleY(1.1);
}
100% {
transform: rotate(0) skewX(0) scaleY(1);
}
}

0 comments on commit 279c0a5

Please sign in to comment.