Le tengo puesto a los divs "venda" y "lloguer" una transición en CSS3 con un hover, lo extraño es que cuando se está efectuando la transición, la imagen que tengo detrás del botón se mueve de manera extraña.
http://inmobiliaria.xtrweb.com/plantilla
Está es la hoja de estilos:
Código CSS:
Ver originalbody{
margin:0;
background-image:url(1.jpg);
background-size:100% 100%;
}
@font-face{
font-family:ostrich-black;
src: url(fuentes/ostrich-black.ttf) format('truetype');
}
#cabecera{
height:300px;
}
#cabecera img{
display:block;
margin:0 auto;
height:200px;
width:558px;
margin-bottom:50px;
margin-top:30px;
-webkit-animation-name: logo ;
-webkit-animation-timing-function: linear;
-webkit-animation-duration: 3s;
-moz-animation-name: logo ;
-moz-animation-timing-function: linear;
-moz-animation-duration: 3s;
}
@-webkit-keyframes logo {
from { opacity:0; }
to { opacity:1; }
}
@-moz-keyframes logo {
from { opacity:0; }
to { opacity:1; }
}
#contenido{
width:100%;
-webkit-box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
-moz-box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
height:800px;
background-image:url(490.jpg);
z-index:999;
position:absolute;
}
#botones {
width:420px;
margin:0 auto;
height:40px;
z-index:-1;
}
#venda{
width:200px;
height:50px;
background-color:#FFA200;
-webkit-box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
-moz-box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
-webkit-border-radius:15px 15px 0 0;
border-radius:15px 15px 0 0;
margin:0 auto;
float:left;
text-align:center;
line-height: 50px;
-webkit-transition-property: all;
-webkit-transition-duration: 1s;
-webkit-transition-timing-function: ease;
-webkit-transition-delay: 0.1s;
-moz-transition-property: all;
-moz-transition-duration: 1s;
-moz-transition-timing-function: ease;
-moz-transition-delay: 0.1s;
color:white;
font-family:ostrich-black;
font-size:30px;
background-image:url(patron.jpg);
}
#venda:hover{
margin-top:-10px;
}
#lloguer:hover{
margin-top:-10px;
}
#lloguer{
width:200px;
height:50px;
background-color:#FFA200;
-webkit-box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
-moz-box-shadow: inset 0 4px 6px rgba(0,0,0,.5);
-webkit-border-radius:15px 15px 0 0;
border-radius:15px 15px 0 0;
margin:0 auto;
float:left;
margin-left:20px;
text-align:center;
line-height: 50px;
-webkit-transition-property: all;
-webkit-transition-duration: 1s;
-webkit-transition-timing-function: ease;
-webkit-transition-delay: 0.1s;
-moz-transition-property: all;
-moz-transition-duration: 1s;
-moz-transition-timing-function: ease;
-moz-transition-delay: 0.1s;
color:white;
font-family:ostrich-black;
font-size:30px;
background-image:url(patron.jpg);
}
Y éste el html:
Código HTML:
Ver original<!DOCTYPE html>
<LINK rel="stylesheet" href="estilo.css"> VENDA
LLOGUER
Espero que me podáis ayudar, gracias y un saludo.