Created
November 6, 2023 20:04
-
-
Save jbenner-radham/4b08df1d00ae483fb7b69320b80ef7e7 to your computer and use it in GitHub Desktop.
Fullscreen centering (e.g., for a loading spinner)
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
.fullscreen-centered { | |
position: fixed; | |
inset: 0; | |
width: 100vw; | |
height: 100vh; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
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
<div class="fullscreen-centered"> | |
<i class="fa-solid fa-spinner fa-spin fa-5x"></i> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment