Skip to content

Commit

Permalink
Completed 4 color animation project
Browse files Browse the repository at this point in the history
  • Loading branch information
rstallingsiii committed Sep 24, 2023
1 parent e7880c7 commit f5e6322
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 18 deletions.
Binary file added Art/Rstallings/Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions Art/Rstallings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<title>Four Color Loader</title>
<link href="./style.css" rel="stylesheet" />
</head>
<body>
<div id="Red">Red</div>
<div id="Blue">Blue</div>
<div id="Yellow">Yellow</div>
<div id="Green">Green</div>
<h1>Four Color Preloader</h1>
<div class="loader">
<div id="Red" class="box bounce"></div>
<div id="Blue" class="box bounce"></div>
<div id="Yellow" class="box bounce"></div>
<div id="Green" class="box bounce"></div>
</div>
</body>
</html>
57 changes: 44 additions & 13 deletions Art/Rstallings/style.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,64 @@
body {
#background-color: bisque;
background-color: bisque;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

div {
align-items: center;
width: 300px;
height: 400px;
margin: 20px;
outline: auto;
h1 {
font-family: Lato, 'Trebuchet MS', 'Verdana', 'sans-serif';
text-align: center;
justify-content: center;
font-size: 44pt;
font-family: Lato, 'Trebuchet MS', 'Verdana', 'sans-serif';
}
.loader {
display: flex;
justify-content: center;
}

.box {
width: 50px;
height: 50px;
transform-origin: bottom;
border-radius: 50%;
margin-right: 1em;
}

div:hover {
transform: scale(1.1);
.bounce {
animation: bounce 3s ease infinite;
}

#Red {
.loader > #Red {
background: red;
}

#Blue {
.loader > #Blue {
background: blue;
animation-delay: 0.2s;
}

#Yellow {
.loader > #Yellow {
background: yellow;
animation-delay: 0.3s;
}

#Green {
.loader > #Green {
background: green;
animation-delay: 0.4s;
}

@keyframes bounce {
0% {
transform: translateY(0);
}
50% {
transform: translateY(100px);
}
100% {
transform: translateY(0);
}
}
9 changes: 9 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ let cards = [
author: 'aschwir',
githubLink: 'https://github.com/aschwir'
},

{
artName: '4 Color Loader',
pageLink: './Art/rstallings/index.html',
imageLink: './Art/rstallings/Animation.gif',
author: 'Roosevelt S.',
githubLink: 'https://github.com/rstallingsiii'
},

{
artName: 'Alright',
pageLink: './Art/arjunan-k/index.html',
Expand Down

0 comments on commit f5e6322

Please sign in to comment.