JSFiddle - React, Tailwind, and code Playground

HTML

<div class="some"></div>

CSS

.some {
    width: 100px;
    height: 100px;
    background: red;
    position: relative;
}
.some:after {
  display: inline-block;
  position: absolute;
  pointer-events: none;
  transition: all 300ms ease;
}

.some:after {
  content: 'some';
  width: auto;
  height: 24px;
  line-height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0 10px;
  z-index: 2;
  top: 100%;
  right: 50%;
  transform-origin: 0 100%;
  transform: translate(50%, 0%);
}

.some:hover:after {
  transform: translateY(10px);
}