Created
June 26, 2017 19:57
-
-
Save emanoelqueiroz/d89b8f2d899e9e0bd3d233c0ed84f79f to your computer and use it in GitHub Desktop.
Loading gostoso
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
// ----------------- | |
// Colors | |
// ----------------- | |
@loader-white: #FFFFFF; | |
@loader-black: #333333; | |
@loader-red: #EA4335; | |
@loader-green: #34A853; | |
@loader-blue: #409AFE; | |
@loader-yellow: #FBBC05; | |
@loader-purple: #9C27B0; | |
@loader-orange: #FF9800; | |
// ----------------- | |
// Blur size | |
// ----------------- | |
@loader-blur: 5px; | |
// ----------------- | |
// Animation duration | |
// ----------------- | |
@loader-duration: 1.2s; | |
@loader-animation-type: linear; | |
// ----------------- | |
// Dots function | |
// ----------------- | |
.make-dots (@i) when (@i > 0) { | |
@delay: unit(@i / 5, s); | |
.dot@{i} { | |
display: inline-block; | |
transform: translateY(-5px); | |
animation: dot-jump 0.5s @delay infinite alternate; | |
} | |
.make-dots((@i - 1)); | |
} | |
.loader-background { | |
background-color: rgba(255,255,255, 0.3); | |
width: 100%; | |
height: 100%; | |
position: fixed; | |
top: 0; | |
left: 0; | |
z-index: 9999; | |
} | |
.group-new { | |
position: absolute; | |
width: 150px; | |
height: 150px; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
margin: auto; | |
} | |
.simbol-talentrh { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
margin: 0 auto; | |
max-width: 90%; | |
} | |
svg.simbol-talentrh { | |
z-index: 9; | |
padding: 5px; | |
.cls-1 { | |
fill: @loader-blue; | |
stroke: @loader-white; | |
stroke-width: 2; | |
} | |
.cls-2 { | |
fill: @loader-white; | |
} | |
} | |
.circle-block { | |
padding: 5px; | |
position: absolute; | |
top: -5px; | |
width: 135px; | |
border-radius: 50%; | |
height: 135px; | |
overflow: hidden; | |
filter: blur(@loader-blur); | |
transform-origin: center; | |
animation: stadium-run @loader-duration @loader-animation-type infinite alternate; | |
.circle { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 130px; | |
height: 130px; | |
filter: blur(20px); | |
border-radius: 5px; | |
background-color: @loader-blue; | |
} | |
} | |
.loading-text { | |
position: absolute; | |
bottom: -25px; | |
width: 200px; | |
color: @black; | |
text-align: left; | |
font-size: 20px; | |
font-family: sans-serif; | |
} | |
.make-dots(3); | |
@keyframes stadium-run { | |
0% { | |
transform: rotate(0deg); | |
background-color: @loader-orange; | |
} | |
25% { | |
transform: rotate(90deg); | |
background-color: @loader-green; | |
} | |
50% { | |
transform: rotate(160deg); | |
background-color: @loader-red; | |
} | |
75% { | |
transform: rotate(250deg); | |
background-color: @loader-yellow; | |
} | |
100% { | |
transform: rotate(360deg); | |
background-color: @loader-purple; | |
} | |
} | |
@keyframes dot-jump { | |
50% { | |
transform: translateY(0px); | |
} | |
100% { | |
transform: translateY(0px); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment