Four new pro blocks today: Box Illustration, Feature With Inline Icons, Pricing With Header and Icons, and Hero Section With Mousemove.
Box Illustration
An interactive 3D box with popout cards on hover. Features a Vercel deployment card and testimonial card that animate upward with spring physics. The box uses CSS 3D transforms to create an open-box effect with front lid, back lid, and side flaps. Fully dark mode responsive.
Feature With Inline Icons
A minimal feature grid with icons placed inline next to text. The layout adapts from 1 column on mobile to 2 on tablet to 3 on desktop. Responsive separators appear between items only—no borders on the outer edges. The separator logic calculates each item's grid position at each breakpoint to show the right combination of horizontal and vertical lines.
Pricing With Header and Icons
A data-driven pricing section with three tiers. Plans are defined in a typed array, making it easy to swap content without touching component structure. The featured plan inverts colors—dark in light mode, light in dark mode—to draw attention. Features can include React nodes for custom formatting like bold text. The CTA button on the featured tier uses a gradient, while others stick to subtle shadows. All shadows adapt to the current theme.
Hero Section With Mousemove
A hero with a Figma-style hover inspector. Hover over any element—headline, paragraph, buttons, or badge—and a blue border appears with a dimension label showing the width and height in pixels. The numbers animate with a sliding digit effect, counting up from zero on each hover.
Behind the content sits a horizontal masonry grid with 5 rows of component screenshots. Each row has a different horizontal offset, and a radial mask fades the images toward the center so they don't compete with the text.
The hover highlight moves smoothly between elements using Framer Motion's layoutId. After 5 seconds without interaction, it fades out. All sub-components use memo to avoid unnecessary re-renders.