Created
November 8, 2019 15:20
-
-
Save andreisfedotov/98b03ae6538a5466c9865f9a9abb907e to your computer and use it in GitHub Desktop.
Loading indicator
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Loading</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<section class="loading"> | |
<section class="circle"></section> | |
<section class="circle"></section> | |
<section class="circle"></section> | |
</section> | |
</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
body { | |
background-color: #353b48; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
min-height: 100vh; | |
margin: 0; | |
} | |
.loading { | |
display: flex; | |
} | |
.circle { | |
background-color: #fff; | |
border-radius: 50%; | |
margin: 3px; | |
height: 10px; | |
width: 10px; | |
animation: jump 0.5s ease-in infinite; | |
} | |
.circle:nth-of-type(2) { | |
animation-delay: 0.1s; | |
} | |
.circle:nth-of-type(3) { | |
animation-delay: 0.2s; | |
} | |
@keyframes jump { | |
0% { | |
transform: translateY(0); | |
} | |
50% { | |
transform: translateY(-10px); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment