Skip to content

Instantly share code, notes, and snippets.

@GermaVinsmoke
Created June 6, 2021 16:52
Show Gist options
  • Select an option

  • Save GermaVinsmoke/f5007e59a34ae8e2ca30b5befc4bd43a to your computer and use it in GitHub Desktop.

Select an option

Save GermaVinsmoke/f5007e59a34ae8e2ca30b5befc4bd43a to your computer and use it in GitHub Desktop.
react-page-loader-css
<head>
<style>
body {
margin: 0;
padding: 0;
height: 100%;
}
.loader-wrapper {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background-color: #0b0b0b;
display: grid;
place-items: center;
}
.loader {
border: 16px solid #e3e3e3;
border-top: 16px solid #3498db;
border-radius: 50%;
width: 140px;
height: 140px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment