Skip to content

Commit

Permalink
Merge pull request #2867 from DEREKFERRER/challenge
Browse files Browse the repository at this point in the history
added my artwork
  • Loading branch information
MattCSmith authored Oct 31, 2024
2 parents 90cb4d5 + 1eecc7b commit 2eb5203
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Art/DEREKFERRER-movingCircle/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>Document</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-three"></div>
<div class="circle-four"></div>
</div>
</body>
</html>
4 changes: 4 additions & 0 deletions Art/DEREKFERRER-movingCircle/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "Moving Circle",
"githubHandle": "DEREKFERRER"
}
151 changes: 151 additions & 0 deletions Art/DEREKFERRER-movingCircle/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
body {
background-color: rgb(30, 112, 61);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.container {
width: 100%;
height: 50%;
position: relative;
background-color: aqua;
border-radius: 10px;
box-shadow: 1px 1px 20px 5px;
}

.circle-one {
top: 20px;
left: 20px;
position: absolute;
background-color:rgb(12, 12, 12);
border-radius: 100%;
width: 25px;
height: 25px;
animation-name: circleOne;
animation-duration: 3s;
animation-iteration-count: infinite;
}

@keyframes circleOne {
0% {background-color: red; left: 2%; top: 2%;}
25% {background-color: green; left: 92%; top: 2%;}
75% {background-color: yellow; left: 3%; top: 90%;}
}

.circle-two {
bottom: 20px;
right: 20px;
position: absolute;
background-color:rgb(12, 12, 12);
border-radius: 100%;
width: 25px;
height: 25px;
animation-name: circleTwo;
animation-duration: 3s;
animation-iteration-count: infinite;
}

@keyframes circleTwo {
0% {background-color: red; right: 2%; bottom: 2%;}
25% {background-color: green; right: 92%; bottom: 2%;}
75% {background-color: yellow; right: 3%; bottom: 90%;}
}

.circle-three {
top: 20px;
right: 20px;
position: absolute;
background-color:rgb(12, 12, 12);
border-radius: 100%;
width: 25px;
height: 25px;
animation-name: circleThree;
animation-duration: 3s;
animation-iteration-count: infinite;
}

@keyframes circleThree {
0% {background-color: red; right: 2%; top: 2%;}
25% {background-color: green; right: 92%; top: 2%;}
75% {background-color: yellow; right: 3%; top: 90%;}
}

.circle-four {
bottom: 20px;
left: 20px;
position: absolute;
background-color:rgb(12, 12, 12);
border-radius: 100%;
width: 25px;
height: 25px;
animation-name: circleFour;
animation-duration: 3s;
animation-iteration-count: infinite;
}

@keyframes circleFour {
0% {background-color: red; left: 2%; bottom: 2%;}
25% {background-color: green; left: 92%; bottom: 2%;}
75% {background-color: yellow; left: 3%; bottom: 90%;}
}

@media (min-width: 700px) {
.container {
margin: 20px;
}
@keyframes circleOne {
0% {background-color: red; left: 2%; top: 2%;}
25% {background-color: green; left: 95%; top: 2%;}
75% {background-color: yellow; left: 2%; top: 92%;}
}

@keyframes circleTwo {
0% {background-color: red; right: 2%; bottom: 2%;}
25% {background-color: green; right: 95%; bottom: 2%;}
75% {background-color: yellow; right: 2%; bottom: 92%;}
}

@keyframes circleThree {
0% {background-color: red; right: 2%; top: 2%;}
25% {background-color: green; right: 95%; top: 2%;}
75% {background-color: yellow; right: 2%; top: 92%;}
}

@keyframes circleFour {
0% {background-color: red; left: 2%; bottom: 2%;}
25% {background-color: green; left: 92%; bottom: 2%;}
75% {background-color: yellow; left: 2%; bottom: 92%;}
}

}

@media (min-width: 1000px) {
.container {
width: 50%;
}
@keyframes circleOne {
0% {background-color: red; left: 2%; top: 2%;}
25% {background-color: green; left: 95%; top: 2%;}
75% {background-color: yellow; left: 2%; top: 87.5%;}
}

@keyframes circleTwo {
0% {background-color: red; right: 2%; bottom: 2%;}
25% {background-color: green; right: 95%; bottom: 2%;}
75% {background-color: yellow; right: 2%; bottom: 87.5%;}
}

@keyframes circleThree {
0% {background-color: red; right: 2%; top: 2%;}
25% {background-color: green; right: 95%; top: 2%;}
75% {background-color: yellow; right: 2%; top: 87.5%;}
}

@keyframes circleFour {
0% {background-color: red; left: 2%; bottom: 2%;}
25% {background-color: green; left: 92%; bottom: 2%;}
75% {background-color: yellow; left: 2%; bottom: 87.5%;}
}
}

0 comments on commit 2eb5203

Please sign in to comment.