@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
  --offset: 6px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0px 0px 0px 20px;
}

h2 {
  width: 980px;
  font-size: 90px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.20;
  color: #292929;
}

.blank {
  height: 20px;
}

.mask {
  height: 106px;
  position: relative;
  overflow: hidden;
  margin-top: var(--offset);
}

.mask span {
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: 100px;
  padding-bottom: var(--offset);
  
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-repeat: no-repeat;
}

.mask span[data-show] {
  transform: translateY(-100%);
  transition: .5s transform ease-in-out;
}

.mask span[data-up] {
  transform: translateY(-200%);
  transition: .5s transform ease-in-out;
}

.mask span:nth-child(1) {
  background-image: linear-gradient(90deg, #39d4ff, #f783ff);
}

.mask span:nth-child(2) {
  background-image: linear-gradient(90deg, #0093F0 50%, #00E4F0);
}

.mask span:nth-child(3) {
  background-image: linear-gradient(90deg, #00E7D4 50%, #00AEE9);
}

.mask span:nth-child(4) {
  background-image: linear-gradient(90deg, #fcce99 50%, #e2780e 100%);
}
