VibeFX
Live preview · fully interactive

The prompt

Build a 12-cell grid that lights the hovered cell.

## Look
Three columns, gap 8px, each cell height 72px, radius 12px, background #14141c, border 1px #23232e. Container max-width 420px. Page #08080d.

## Behavior
On hover, background becomes #7c6cff and the cell translates up 3px.

## Design tokens
- Rest #14141c; hover #7c6cff; border #23232e; page #08080d.

## Motion
- Transition 0.2s ease for background and transform.

## 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; }
  main { min-height: 100vh; display: grid; place-items: center; padding: 16px; } ul { width: min(420px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; } li { height: 72px; border-radius: 12px; background: #14141c; border: 1px solid #23232e; transition: background 0.2s ease, transform 0.2s ease; } li:hover { background: #7c6cff; transform: translateY(-3px); }
  @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>
<main><ul><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></main>

<script>

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

About this effect

Twelve cells sit in a responsive grid. The hovered cell shifts to #7c6cff over 0.2s while the others stay #14141c.

Similar effects