Created
December 17, 2012 08:25
-
-
Save Antonio-Laguna/4316636 to your computer and use it in GitHub Desktop.
Sencilla transición CSS
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
/** | |
* Sencilla transición CSS | |
*/ | |
body { | |
background: #EFEFEF; | |
} | |
div.recuadro { | |
background: #fff; | |
margin: 0 300px; | |
width: 200px; | |
padding: 50px; | |
text-align: center; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
-webkit-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; | |
-moz-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; | |
box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; | |
transition-property: background; | |
transition-duration: 0.5s; | |
} | |
.recuadro:hover { | |
background: #CCDD55; | |
} |
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="recuadro">Pasa el cursor por encima</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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment