戻る
#0202002 タップでプレビュー
<button class="c-shuffleLink">
  <span>H</span>
  <span>o</span>
  <span>v</span>
  <span>e</span>
  <span>r</span>
</button>
.c-shuffleLink {
  width: -moz-fit-content;
  width: fit-content;
  padding: 4px 16px;
  border: #fff 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.c-shuffleLink span {
  padding: 0;
  color: #fff;
  display: block;
  text-shadow: #fff 0 24px 0;
  position: relative;
  transition: 0.5s ease;
}
.c-shuffleLink span:nth-child(1) {
  transition-delay: 0s;
}
.c-shuffleLink span:nth-child(2) {
  transition-delay: 0.15s;
}
.c-shuffleLink span:nth-child(3) {
  transition-delay: 0.3s;
}
.c-shuffleLink span:nth-child(4) {
  transition-delay: 0.45s;
}
.c-shuffleLink span:nth-child(5) {
  transition-delay: 0.6s;
}
.c-shuffleLink span:nth-child(6) {
  transition-delay: 0.75s;
}
.c-shuffleLink span:nth-child(7) {
  transition-delay: 0.9s;
}
.c-shuffleLink span:nth-child(8) {
  transition-delay: 1.05s;
}
.c-shuffleLink span:nth-child(9) {
  transition-delay: 1.2s;
}
.c-shuffleLink span:nth-child(10) {
  transition-delay: 1.35s;
}
.c-shuffleLink:hover span {
  transform: translateY(-24px);
  color: transparent;
}
.c {
  &-shuffleLink {
    width: fit-content;
    padding: 4px 16px;
    border: #fff 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    span {
      padding: 0;
      color: #fff;
      display: block;
      text-shadow: #fff 0 24px 0;
      position: relative;
      transition: 0.5s ease;

      // 10文字まで対応
      @for $i from 1 through 10 {
        &:nth-child(#{$i}) {
          transition-delay: 0.15s * ($i - 1);
        }
      }
    }

    &:hover {
      span {
        transform: translateY(-24px);
        color: transparent;
      }
    }
  }
}
p