Skip to content

Commit

Permalink
Expanding Circle (#2889)
Browse files Browse the repository at this point in the history
* adding my expanding circles animation to the project

* I have fixed the errors as per the email, thanks
  • Loading branch information
MarkwSch authored Nov 18, 2024
1 parent 7976766 commit c5e5714
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Art/markwsch-ExpandingCircles/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expanding Circles by MarkwSch</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="circle one"></div>
<div class="circle two"></div>
<div class="circle four"></div>
<div class="circle three"></div>
</body>
</html>

4 changes: 4 additions & 0 deletions Art/markwsch-ExpandingCircles/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "Expanding Circles",
"githubHandle": "MarkwSch"
}
76 changes: 76 additions & 0 deletions Art/markwsch-ExpandingCircles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
html {
background: black;
height: 100%;
position: relative;
overflow: hidden;
}

body {
margin: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;

}

h1 {
color: white;
justify-content: center;
align-items: center;
font-size: 3em;
}

.container {
display: grid;
position: absolute;
grid-template-columns: repeat(2, 150px);
grid-template-rows: repeat(2, 150px);
gap: 0;
height: 300px;
width: 300px;
}

.circle {
width: 100px;
height: 100px;
border-radius: 50%;
background: rgb(136, 226, 235);
animation: expand-shrink 4s infinite, color-change 4s infinite;
display: flex;
justify-content: center;
align-items: center;
}

.one {
animation-delay: 0s;
}

.two {
animation-delay: 1s;
}

.three {
animation-delay: 2s;
}

.four {
animation-delay: 3s;
}

@keyframes expand-shrink {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.3); }
}

@keyframes color-change {
0% { background: rgb(136, 226, 235); }
12.5% { background: rgb(160, 218.5, 177);}
25% { background: rgb(185, 211, 117.5); }
37.5% {background: rgb(210, 204, 59.5);}
50% { background: rgb(235, 196, 0); }
62.5% { background: rgb(210, 204, 59.5); }
75% { background: rgb(185, 219, 117.5); }
87.5% { background: rgb(160, 218.5, 177) }
100% { background: rgb(136, 226, 235); }
}

0 comments on commit c5e5714

Please sign in to comment.