I need help with a transformation in css

0

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.

    
asked by Jose Manuel 29.06.2017 в 16:21
source

1 answer

0

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>
    
answered by 29.06.2017 в 17:30