Friend I have a question that transformation or transition serves to make a container look like it is coming out of the screen, so when the pointer passes, it gets caught up on itself, you could tell me the name please.
Friend I have a question that transformation or transition serves to make a container look like it is coming out of the screen, so when the pointer passes, it gets caught up on itself, you could tell me the name please.
For this case you can use the property transition
to give a smooth effect and hover a transform: scale()
to increase the size of the element.
.elemento {
height: 100px;
width: 100px;
transition: 0.3s;
border: 1px solid #333;
background-color: #ddd;
}
.elemento:hover {
transform: scale(1.1);
}
<div class="elemento"></div>