A Pen by Geoffrey "C0ZEN" Testelin on CodePen.
Created
November 24, 2020 21:25
-
-
Save C0ZEN/55eedfb02fa160bd2dffb3a38efc0098 to your computer and use it in GitHub Desktop.
q1m4 loader draft #1
This file contains hidden or 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
container | |
loader |
This file contains hidden or 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
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