Created
March 15, 2013 10:37
-
-
Save tx2z/5168920 to your computer and use it in GitHub Desktop.
Cambiar entre dos imágenes al pasar el raton por encima con css - http://jesus.perezpaz.es/2013/01/cambiar-entre-dos-imagenes-al-pasar-el-raton-por-encima-con-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
#imagen { | |
background: url(ruta a la imagen/imagen1.jpg) no-repeat; | |
height: (alto)px; | |
width: (ancho)px; | |
} |
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
#imagen:hover { | |
background: url(ruta_a_la_imagen/imagen2.jpg) no-repeat; | |
height: (alto)px; | |
width: (ancho)px; | |
} |
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
#imagen { | |
background: url(ruta_a_la_imagen/imagen1y2.jpg) no-repeat left; | |
height: (alto)px; //el alto original de la imagen1 | |
width: (ancho)px; //el ancho original de la imagen1 | |
} | |
#imagen:hover { | |
background-position: right | |
height: (alto)px; //el alto original de la imagen2 | |
width: (ancho)px; //el ancho original de la imagen2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment