Skip to content

Instantly share code, notes, and snippets.

@C0ZEN
Created November 24, 2020 21:25
Show Gist options
  • Save C0ZEN/55eedfb02fa160bd2dffb3a38efc0098 to your computer and use it in GitHub Desktop.
Save C0ZEN/55eedfb02fa160bd2dffb3a38efc0098 to your computer and use it in GitHub Desktop.
q1m4 loader draft #1
container
loader
container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
min-height: 100vh;
min-width: 100vw;
background-color: #ffffff;
}
// Real stuff start here
@keyframes loader-animation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
$loader-size: 5rem;
$loader-width: 0.2rem;
$loader-active-color: #e4002b;
$loader-color: lighten($loader-active-color, 45%);
$loader-animation-duration: 1.1s;
loader {
height: $loader-size;
width: $loader-size;
border: $loader-width solid $loader-color;
border-top-color: $loader-active-color;
border-radius: 50%;
animation-name: loader-animation;
animation-duration: $loader-animation-duration;
animation-fill-mode: both;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(0.38, 0.02, 0.51, 1.03);
transform-origin: center center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment