* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.container {
  position: relative;
  width: 100%;
  height: 120px;
  transition: 0.5s;
  text-align: center;
  color: #fff;
}

.container .text {
  height: 120px;
  position: absolute;
  top: 0;
  font-size: 120px;
  line-height: 120px;
  text-align: center;
  width: 100%;
  background: linear-gradient(315deg, #42d392 25%, #647eff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.container .text:nth-child(1) {
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.container .text:nth-child(3) {
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  transition: 0.5s;
}

.container .inner-text {
  height: 0px;
  overflow: hidden;
  transform: scale(1, 0);
  position: absolute;
  top: 60px;
  width: 100%;
  font-size: 60px;
  line-height: 70px;
  transition: 0.5s;
  text-align: center;
}

.container:hover {
  height: 190px;
}

.container:hover .inner-text {
  height: 70px;
  transform: scale(1, 1);
}

.container:hover .text:nth-child(3) {
  top: 80px;
}
