Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

pure css spinner

#loading {
  display: inline-block;
    width: 150px;
    height: 150px;
    border: 5px solid rgb(26 108 97 / 54%);
    border-radius: 50%;
    border-top-color: #fff0;
    animation: spin 1s ease-in infinite; /*use cubic-bezier(0,0,0,0) for smooth spin*/
    -webkit-animation: spin 1s ease-in-out infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    translate: -50% -50%;
}

@keyframes spin {to {-webkit-transform: rotate(360deg);}}
@-webkit-keyframes spin {to {-webkit-transform: rotate(360deg);}}
Source by codepen.io #
 
PREVIOUS NEXT
Tagged: #pure #css #spinner
ADD COMMENT
Topic
Name
7+4 =