1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| .pic{
margin :200px auto;
width:300px;
height:200px;
}
.pic img
{
width:100px;
height:125px;
-webkit-transition: all .6s ease-in; /* element qui subit la transition, temps de la transition et function de la transition*/
-moz-transition: all .6s ease-in;
-o-transition: all .6s ease-in;
transition: all .6s ease-in;
}
.pic img:hover
{
-webkit-transform: scale(4); /*multiplication de la taille de départ x 4*/
-moz-transform: scale(4);
-o-transform: scale(4);
transform: scale(4);
-webkit-transform-origin: center center; /*origine de l'animation*/
-moz-transform-origin: center center;
-o-transform-origin: center center;
transform-origin: center center;
} |