Answers for "scale in html css"

CSS
4

scale css

.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Posted by: Guest on May-10-2020
0

scale in html

<div>Normal</div>
<div class="scaled">Scaled</div>

<style>
div {
  width: 80px;
  height: 80px;
  background-color: skyblue;
}

.scaled {
  transform: scale(2, 0.5); /* Equal to scaleX(2) scaleY(0.5) */
  transform-origin: left;
  background-color: pink;
</style>
Posted by: Guest on July-29-2021

Browse Popular Code Answers by Language