Last active
September 10, 2021 06:08
-
-
Save Bazooka2091/27e03ee9494c665cf337de4e3d33e9bb to your computer and use it in GitHub Desktop.
Web
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
@import url(https://fonts.googleapis.com/css?family=Roboto:100); | |
body { margin-top: 100px; background-color: #137b85; color: #fff; text-align:center; } | |
h1 { | |
font: 2em 'Roboto', sans-serif; | |
margin-bottom: 40px; | |
} | |
#loading { | |
display: inline-block; | |
width: 50px; | |
height: 50px; | |
border: 3px solid rgba(255,255,255,.3); | |
border-radius: 50%; | |
border-top-color: #fff; | |
animation: spin 1s ease-in-out infinite; | |
-webkit-animation: spin 1s ease-in-out infinite; | |
} | |
@keyframes spin { | |
to { -webkit-transform: rotate(360deg); } | |
} | |
@-webkit-keyframes spin { | |
to { -webkit-transform: rotate(360deg); } | |
} |
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
<h1>Super simple CSS spinner</h1> | |
<div id="loading"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment