-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1795 from zero-to-mastery/rstallingsiii-master
Rstallingsiii master
- Loading branch information
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Four Color Loader</title> | ||
<link href="./style.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<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> |
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,64 @@ | ||
body { | ||
background-color: bisque; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
margin: 0; | ||
} | ||
|
||
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; | ||
} | ||
|
||
.bounce { | ||
animation: bounce 3s ease infinite; | ||
} | ||
|
||
.loader > #Red { | ||
background: red; | ||
} | ||
|
||
.loader > #Blue { | ||
background: blue; | ||
animation-delay: 0.2s; | ||
} | ||
|
||
.loader > #Yellow { | ||
background: yellow; | ||
animation-delay: 0.3s; | ||
} | ||
|
||
.loader > #Green { | ||
background: green; | ||
animation-delay: 0.4s; | ||
} | ||
|
||
@keyframes bounce { | ||
0% { | ||
transform: translateY(0); | ||
} | ||
50% { | ||
transform: translateY(100px); | ||
} | ||
100% { | ||
transform: translateY(0); | ||
} | ||
} |
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