ライブデモ Live Demo

CTAボタンはグラデーションで塗りつぶされ、グロー強度とパルス速度を制御するカスタムプロパティでアニメーション化されます。スライダーで望む強度を調節してください。

The CTA button is filled with a gradient and animated via custom properties that control glow strength and pulse speed. Use the slider to dial in the desired intensity.

0.9
2.4s

AI向け説明 AI Description

`M-002` は `@keyframes` アニメーションでグラデーション背景のCTAボタンをパルスさせます。`--glow-strength` で `box-shadow` の発光強度を、`--pulse-duration` でアニメーション速度を制御します。`::after` 疑似要素がインナーリングのハイライトを追加します。

`M-002` pulses a gradient CTA button via `@keyframes` animation. `--glow-strength` controls `box-shadow` intensity and `--pulse-duration` controls speed. A `::after` pseudo-element adds an inner highlight ring.

調整可能パラメータ Adjustable Parameters

実装 Implementation

HTML + CSS

<button class="pulse-button">Start Flow</button>

<style>
:root {
  --pulse-duration: 2.4s;
  --glow-strength: 0.9;
}

.pulse-button {
  border: none;
  border-radius: 999px;
  padding: 18px 46px;
  font-size: 20px;
  font-weight: 600;
  color: #060612;
  background: linear-gradient(120deg, #6d6bff, #ff77a9, #21f6d0);
  box-shadow:
    0 0 calc(32px * var(--glow-strength)) rgba(111, 107, 255, 0.9),
    0 0 calc(54px * var(--glow-strength)) rgba(255, 119, 169, 0.7);
  animation: neonPulse var(--pulse-duration) ease-in-out infinite;
  cursor: pointer;
}

@keyframes neonPulse {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.04);
    filter: saturate(1.35);
  }
}
</style>

React (JSX + CSS)

// react/M-002.jsx
import "./M-002.css";

export default function NeonPulseButton({
  glow = 0.9,
  speed = 2.4,
  children = "Start Flow"
}) {
  return (
    <button
      className="pulse-button"
      style={{
        ["--glow-strength"]: glow,
        ["--pulse-duration"]: `${speed}s`
      }}
    >
      {children}
    </button>
  );
}
/* react/M-002.css */
.pulse-button {
  border: none;
  border-radius: 999px;
  padding: 18px 46px;
  font-size: 20px;
  font-weight: 600;
  color: #060612;
  background: linear-gradient(120deg, #6d6bff, #ff77a9, #21f6d0);
  box-shadow:
    0 0 calc(32px * var(--glow-strength, 0.9)) rgba(111, 107, 255, 0.9),
    0 0 calc(54px * var(--glow-strength, 0.9)) rgba(255, 119, 169, 0.7);
  animation: neonPulse var(--pulse-duration, 2.4s) ease-in-out infinite;
  cursor: pointer;
}

@keyframes neonPulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.04); filter: saturate(1.35); }
}

AIへの指示テンプレート AI Prompt Template

以下のテンプレートをコピーしてAIアシスタントに貼り付けると、このパターンの実装を依頼できます。 Copy the template below and paste it into your AI assistant to request an implementation of this pattern.

注意とバリエーション Notes & Variations

ボタンの背後にSVGグローやパーティクルを重ねるとヒーローCTAになります。このページに記載されたパターンを拡張してリップル展開や連鎖パルスを追加してください。

Layering SVG glows or particles behind the button turns it into a hero CTA. Add ripple spreads or chained pulses by extending the patterns documented on this page.