JSFiddle - React, Tailwind, and code Playground

by asdf

HTML

<div class="outer">
  <div class="inner">
  
  </div>
</div>

CSS

.outer {
  height: 200px;
  width: 200px;
  background-color: lightblue;
  position: relative;
}
.inner {
  height: 0;
  width: 100%;
  position: absolute;
  bottom: 0;
  background-color: lightyellow;
  opacity: 0;
  transition: height 1s, opacity 1s, transform 1s;
  cursor: pointer;
}
.inner:hover {
  transform: rotate(-15deg);
}
.outer:hover .inner {
  height: 100px;
  opacity: 1;
}