freeCodeCamp Challenge Guide: Use the CSS Transform scale Property to Scale an Element on Hover

Use the CSS Transform scale Property to Scale an Element on Hover


Solutions

Solution 1 (Click to Show/Hide)
<style>
  div {
    width: 70%;
    height: 100px;
    margin:  50px auto;
    background: linear-gradient(
      53deg,
      #ccfffc,
      #ffcccf
    );
  }

  div:hover {
    transform: scale(1.1);
  }
</style>

<div></div>
9 Likes