VibeFX
Live preview · fully interactive

The prompt

Build a rotating conic light beam.

## Look
A full-bleed conic gradient with a violet wedge at rgba(124,108,255,0.55) between 70% and 86%. Mask with a radial gradient so the center 12% stays clear. Headline clamp(36px, 7vw, 80px), #f2f2f7. Page #08080d.

## Behavior
Rotate the beam 360deg.

## Design tokens
- Beam rgba(124,108,255,0.55); text #f2f2f7; page #08080d.

## Motion
- Duration 18s, linear, infinite.

## Constraints
- Single self-contained HTML file. No libraries. CSS only.
- Honor prefers-reduced-motion: reduce by skipping the loop and leaving a readable static frame
- Readable at 390px width with no horizontal page scroll

The code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { min-height: 100%; }
  body {
    background: #08080d; color: #f2f2f7; font-family: Inter, system-ui, sans-serif;
    min-height: 100vh; overflow: hidden;
  }
  .hint { position: absolute; left: 16px; top: 16px; z-index: 5; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a99; }
  .beam { position: fixed; inset: -20%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(124,108,255,0.55) 78%, transparent 86% 100%); animation: spin 18s linear infinite; mask-image: radial-gradient(circle, transparent 0 12%, #000 45%); } h1 { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; font-size: clamp(36px, 7vw, 80px); letter-spacing: -0.05em; } @keyframes spin { to { transform: rotate(360deg); } }
  @media (max-width: 420px) {
    .hint { font-size: 10px; letter-spacing: 0.08em; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  }
</style>
</head>
<body>
<div class="beam"></div><h1>One beam.</h1>

<script>

</script>
</body>
</html>

About this effect

A conic gradient of violet wedges rotates 360deg over 18s. A radial mask keeps the center clear for the title.

Similar effects