Skip to content

Instantly share code, notes, and snippets.

@Antonio-Laguna
Created December 17, 2012 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Antonio-Laguna/4316636 to your computer and use it in GitHub Desktop.
Save Antonio-Laguna/4316636 to your computer and use it in GitHub Desktop.
Sencilla transición CSS
/**
* 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;
}
<div class="recuadro">Pasa el cursor por encima</div>
// alert('Hello world!');
{"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