animui
ComponentsBlocksDocsPackageTry the demo
Introduction
Installation
Theming
Motion
AI guide
Changelog
Metrics dashboard
KPI drilldown
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Choropleth explorer
Connected scatter
Market terminal
Budget variance
Small multiples
Line replay
AI chat
AI composer
Agent run
AI side panel
SidebarPro4
Page header
Command palette
Notification center
Empty states
Search resultsPro
Login and sign up5
OTP input
Multi-step formPro
Settings page
Settings command
Security settings
Billing overview
Usage billing
Cancel flow
Team members
Invite people
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Environment variables
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Invoice studio
Wallet card
Product listing
Product detail
Inbox triage
Support conversation
Support widget
Help centerNew
File upload
Media playerPro
Week calendar
Availability picker
Project board
Release readiness
Kanban boardNew
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrain
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new8 new
BlocksSpotlight grid

Spotlight gridPro

A feature grid where light follows the pointer, cards play live demos, and a click morphs a card into its detail.

Live block · sample data

When to use

  • A product landing page section that shows four features with live, hands-on previews.
  • Developer tool marketing where a small working demo explains a feature better than copy.
  • Pages that want a bento grid with one wide card per row and a detail view that opens in place.

When not to use

  • Use use-case-gallery for a browsable set of customer or use case stories.
  • Use expandable-card when you need a single card that expands, not a whole feature grid.
  • Use feature-illustration for one static feature explained with an illustration.

Installation

Install animui once, then import any component or block from its typed package entry.

animui · 250 components and blocks

React 19 and React DOM 19 are required. The package includes Free and Pro entries, styles and TypeScript declarations.

npm install https://animui.stracture.net/__local/package.tgz

Load the stylesheet once at your app root, then use the typed component import:

import 'animui/styles.css';
import { SpotlightGrid } from 'animui/spotlight-grid';

Read the Code tab for the implementation files and the API reference below for required props.

Download animui 0.3.0 · Agent guide

Usage

Use this as a starting point and replace the sample data with your own.

example.tsx
1import { SpotlightGrid } from "animui/spotlight-grid";2 3export function FeaturesSection() {4  return (5    <section style={{ padding: "96px 24px" }}>6      <SpotlightGrid />7    </section>8  );9}
Built fromMotion

API reference

SpotlightGrid

A marketing feature grid of four cards (latency, deploys, flags, review). A soft light follows the mouse along the card borders, hovering a card plays a small live preview, and opening a card morphs it into a working detail view in place. Copy, charts, and people are sample data inside the file. Also the default export.

No props.

Keyboard interactions

Tab
Moves between the card buttons. Each card title is a button that stretches over the whole card.
EnterorSpace
Opens the focused card into its detail view; focus moves to the close button.
Escape
Closes the open detail view and returns focus to the card that opened it.
Arrow keys
Inside a detail view, move and select within the time range and rollout segmented controls.

Accessibility

  • The section is labelled by its heading. Card buttons carry aria-expanded and aria-controls pointing at the open detail region.
  • The open detail is a role="region" labelled by its title, and the grid behind it is made inert.
  • Segmented controls are radiogroups with roving tabindex; the flag toggle is a role="switch"; Approve uses aria-pressed.
  • The latency chart is a role="img" SVG whose label states the range and p95. Deploy and approval results are announced through a polite live region.
  • Mini previews are aria-hidden; the card title and blurb carry the meaning.

Motion

  • The card surface and title share layoutIds with the detail view, so opening grows the card on a spring with a little bounce and closing settles without overshoot.
  • The border light tracks the pointer through springs and fades in and out; it only runs for mouse pointers.
  • Hover previews: the latency sparkline redraws every 1.1s, the deploy counter ticks every 0.9s, the flag switch and comment pin spring in.
  • Charts morph their path between time ranges; changed labels crossfade with a short blur.
  • Reduced motion drops the layout morph, the pointer light, and the preview timers. Content fades or switches instantly and previews show their end state.

Responsive behavior

  • The root is a size container named spotlight. Below 520px the grid is one column, from 520px two columns with wide cards spanning both, from 820px three columns.
  • Below 520px the detail view opens at the card's own position instead of the top of the grid, and cards, padding, and the chart get smaller.
  • The pointer light and hover previews only run for a mouse; on touch, cards simply open on tap.

Performance

  • The pointer light is driven by motion values and CSS variables, so pointer moves do not re-render React.
  • Each card reads its offset with a ResizeObserver. Preview intervals only run while a card is hovered or focused.
  • useInView starts the first sparkline and tick animations once, when the grid is 30% visible.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use for a landing page feature section where each feature can be tried, not just described.
  • All content lives in constants at the top of the file (CARDS, RANGES, SHIPS, COMMENTS). Edit those and the matching Mini and Detail components to present your own features.
  • There are no props or callbacks; the deploy, flag, and approval interactions are simulated locally.
  • Uses next/image with shared demo portraits from animui/lib, and animui AnimatedCounter for numbers.
/components/blocks/spotlight-grid/markdown

The full library index for assistants is at /llms.txt.

Related

Expandable cardComponentGive a dense card more room when requested.Scroll storyProBlockA feature section where scrolling the copy drives a pinned product view through each step.
PreviousScroll storyNextInvite people
animui · 84 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

From merge to production, in view

Four tools that stay quiet until you need them. Hover to preview one, open it to try it.

p95160001234567890012345678900123456789 msLive

Every route traced from the edge, with p95 updated each minute.

1,28400123456789,001234567890012345678900123456789deploys this week

Merges to main ship on their own once checks pass.

new-checkout
Off for everyone

Release to a slice of traffic and widen it when it holds.

Comments pin to the page your team is actually looking at.