@Patrique Alves,
Initially your CSS contains an error property right at the beginning:
*{
margin: 0;
padding: 0;
box-sizing:
}
...should look like this:
*{
margin: 0;
padding: 0;
box-sizing: 0;
}
Following, this movement is due to the tag "li" being with different values; see:
.nav li{
...
width: 145px;
height: 150px;
...
}
.nav li:hover{
...
width: 145px; /* Deve ficar igual ao ".nav li {...}" */
height: 150px; /* Deve ficar igual ao ".nav li {...}" */
...
}
With this adjustment the movement will be restricted to each object.
To that end believe be what is missing in CSS ". Nav li:Hover". Change the code as below and test. With me it worked very similar to what you need.
.nav li:hover{
opacity:1;
/*width:155px;*/
height:160px;
background:rgba(11, 132, 138, 0.7);
z-index: 2;
-webkit-transition: all 200ms ease-in;
-webkit-transform: scale(1.5);
-ms-transition: all 200ms ease-in;
-ms-transform: scale(1.5);
-moz-transition: all 200ms ease-in;
-moz-transform: scale(1.5);
transition: all 200ms ease-in;
transform: scale(1.5);
}
I hope I’ve helped.
thanks for the help, more this way the effect just exchanges the background, I would like it to increase so I put larger, but when I increase it moves, I would like to know how to increase without moving the others
– Patrique Alves
would be something like this https://codepen.io/wifeo/pen/qzwkb but I’m not getting it
– Patrique Alves