-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding my expanding circles animation to the project * I have fixed the errors as per the email, thanks
- Loading branch information
Showing
3 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"artName": "Expanding Circles", | ||
"githubHandle": "MarkwSch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); } | ||
} |