Created
September 26, 2014 14:56
-
-
Save tanmaypatel/b3e5aca053d82f37f77e to your computer and use it in GitHub Desktop.
Bouncing Chameleon Spinner - LessHat version!
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
<div class="spinner"> | |
<div class="element1"></div> | |
<div class="element2"></div> | |
</div> |
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
.spinner | |
{ | |
.element1, | |
.element2 | |
{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
.border-radius(50%); | |
.opacity(0.66); | |
.animation(bounce 2s infinite ease-in-out, colorwheel 5s infinite ease-in-out); | |
} | |
.element2 | |
{ | |
.animation-delay(1s, -2s); | |
} | |
} | |
.keyframes(~'bounce, 0%, 100% { transform: scale(0.0); } 50% { transform: scale(1.0); }'); | |
.keyframes(~'colorwheel, 0%, 100% { background-color: @{red}; } 20% { background-color: @{orange}; } 40% { background-color: @{yellow}; } 60% { background-color: @{green}; } 80% { background-color: @{blue}; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment