Skip to content

Commit

Permalink
violin87-activeSquares (#2791)
Browse files Browse the repository at this point in the history
* My AnimationPeroject

* Rename foulder

* I did required changes to be qualify for submission

* Update styles.css

Remove changes in other file

* Removeds screenshot file

* revert accidental changes of other file

* reversed changes

* Delete comment and changed identation

* Improved spacing

* I am added json. I am sorry it took this long

* Formatitng

* Update styles.css

Removed extra lines

---------

Co-authored-by: Laureline Paris <[email protected]>
  • Loading branch information
violin87 and LaurelineP authored Oct 29, 2024
1 parent 669651d commit 0f59fac
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 1 deletion.
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"
}
106 changes: 106 additions & 0 deletions Art/violin87-activeSquares/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
.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;}
}

0 comments on commit 0f59fac

Please sign in to comment.