JSFiddle - React, Tailwind, and code Playground

by ryanbrill

HTML

<div class="one">

</div>

<div class="two">

</div>

<div class="three">

</div>

CSS

div {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 300px;
  height: 300px;
  background: #ccc;
  border-radius: 50%;
  transition: all .5s;
}

div.one:hover {
  background: #000;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
}

div.two {
  height: 200px;
  width: 200px;
  top: 100px;
  left: 100px;
  background: #aaa;
}

div.two:hover {
  background: #000;
  top: 75px;
  left: 75px;
  height: 250px;
  width: 250px;
}

div.three {
  height: 100px;
  width: 100px;
  top: 150px;
  left: 150px;
  background: #999;
}

div.three:hover {
  background: #000;
  top: 125px;
  left: 125px;
  height: 150px;
  width: 150px;
}