シャインアニメ付き光ボタン

HTML
<div class="push-button_box">
  <a href="#" class="push-button shine">チェックする</a>
</div>
CSS
.push-button_box {
  width: 30%;
  margin: 50px auto;
}

.push-button.shine {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #60a5fa;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
}

.push-button.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-20deg);
  animation: shine 1.8s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

🌟 有料会員限定素材を配布中!

ここでしか手に入らない特別デザイン素材を今すぐチェック!

有料会員ページを見る
目次