A Pen by Leonardo Lima on CodePen.
Created
September 8, 2014 01:55
-
-
Save leonardo403/3569fab0d7f6998977c8 to your computer and use it in GitHub Desktop.
A Pen by Leonardo Lima.
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="letter"> | |
<span class="red">C</span> | |
<span class="red">S</span> | |
<span class="red">S</span> | |
</div> |
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
/*var*/ | |
@red:red; | |
@blue:blue; | |
@yellow:yellow; | |
html, body{margin:0px;padding:0px;} | |
.red{transition:2s;float:right;margin-right:20em;font-size:36px;font-weight:bold;} | |
div{ | |
-webkit-animation: myfirst 2s linear 2s infinite alternate; | |
-o-animation: myfirst 2s linear 2s infinite alternate; | |
-moz-animation: myfirst 2s linear 2s infinite alternate; | |
animation: myfirst 2s linear 2s infinite alternate; | |
} | |
.red:hover{color:@red;cursor:pointer;} | |
.letter:hover{color:@blue;} | |
/*animation*/ | |
@-webkit-keyframes myfirst { | |
from {color: @red;} | |
to {color: @yellow;} | |
} | |
@-moz-keyframes myfirst { | |
from {color: @red;} | |
to {color: @yellow;font-size:10px;} | |
} | |
@-o-keyframes myfirst { | |
from {color: @red;} | |
to {color: @yellow;font-size:10px;} | |
} | |
@keyframes myfirst { | |
from {color: @red;} | |
to {color: @yellow;font-size:10px;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment