Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

violin87-activeSquares #2791

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion Art/SumitDutta007-bubbles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@
100% {
bottom: 100%;
}
}
}
26 changes: 26 additions & 0 deletions Art/violin87-activeSquares/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Active Squares</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>

<div class="squareBox">
<div class="squareSection1">
<div class="square1"></div>
<div class="square2"></div>
<div class="square3"></div>
</div>
<div class="squareSection2">
<div class="square4"></div>
<div class="square5"></div>
<div class="square6"></div>
</div>
</div>


</body>
</html>
4 changes: 4 additions & 0 deletions Art/violin87-activeSquares/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "activeSquares",
"githubHandle": "violin87"
}
121 changes: 121 additions & 0 deletions Art/violin87-activeSquares/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
.squareBox {
display: flex;
flex-direction: column;
background-color: aquamarine;
justify-content: center;
align-items: center;
gap: 20px;
flex-wrap: wrap;
gap: 10px;
width: 100vw;
height: 100vh;
animation-name: colorChange;
animation-iteration-count: infinite;
animation-duration: 5s;
animation-direction: alternate;
position: relative;
}

.squareSection1, .squareSection2 {
display: flex;
justify-content: center;
width: 45%;
height: 45%;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}

.squareSection1 {
align-items: flex-end;
animation-name: moveSquares1;
}

.squareSection2 {
align-items: flex-start;
animation-name: moveSquare2;
}

.square1, .square2, .square3 {
animation: moveSquares1 3s infinite alternate;
}
.square4, .square5, .square6 {
animation: moveSquares2 3s infinite alternate;
}
.square1 {
background-color: black;
width: 30px;
height: 30px;
}
.square2 {
background-color: black;
width: 30px;
height: 30px;
}

.square3 {
background-color: black;
width: 30px;
height: 30px;
}
.square4 {
background-color: black;
width: 30px;
height: 30px;
}

.square5 {
background-color: black;
width: 30px;
height: 30px;
}

.square6 {
background-color: black;
width: 30px;
height: 30px;
}

@keyframes moveSquares1 {
0% {
transform: translateY(100%);
}
50% {
transform: translateX(50%);
}
100% {
transform: translateY(-100%);
}
}

@keyframes moveSquares2 {
0% {
transform: translateY(-100%);
}
50% {
transform: translateX(-50%);
}
100% {
transform: translateY(100%);
}
}
@keyframes colorChange {

from{background-color: aquamarine;}
to{background-color: yellow;}
}















violin87 marked this conversation as resolved.
Show resolved Hide resolved