Skip to content

Instantly share code, notes, and snippets.

@andreisfedotov
Created November 8, 2019 15:20
Show Gist options
  • Save andreisfedotov/98b03ae6538a5466c9865f9a9abb907e to your computer and use it in GitHub Desktop.
Save andreisfedotov/98b03ae6538a5466c9865f9a9abb907e to your computer and use it in GitHub Desktop.
Loading indicator
<!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>
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