iPhone Mockup Hero

Pro

An iPhone frame stands over two rows of photos drifting in opposite directions, its wallpaper from the same library.

iphonemockupherophonephotoswallpapermarquee
iPhone Mockup Hero component preview

Overview

iPhone Mockup Hero is a React and Tailwind CSS hero section with an iPhone mockup centered over two rows of photos drifting in opposite directions, in Next.js or any React app, with no dependencies. The rows are a transform only CSS loop, measured so they stay seamless at any width and move at a constant pixel speed whatever the tile count, fading at both edges. Frame finish, wallpaper, and speed are props. It pauses off screen, holds still for reduced motion, and hides duplicate tiles from screen readers. The tiles split in half between the two rows.

Installation

Run the following command

~/your-project
pnpm dlx wensity@latest add iphone-mockup-hero

Usage

Import IphoneMockupHero from @/components/wensity/iphone-mockup-hero and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.

app/example.tsx
import { IphoneMockupHero } from "@/components/wensity/iphone-mockup-hero";
export default function Example() {
return <IphoneMockupHero />;
}

Props

PropTypeDefaultDescription
tilesPhonePosterTile[]18 coversSquare covers behind the phone, split into two rows. Each needs an image and alt text.
wallpaperstringNight pavilionImage behind the screen UI.
frameIphoneMockupHeroFramedeep-blueMetal finish matching iPhone Siri: cosmic-orange, silver, deep-blue, or burgundy.
speednumber24Drift speed of the photo rows in pixels per second. The top row runs left and the bottom row runs right. Set 0 to hold them still.
  • Split-Flap Display component preview

    Split-Flap Display

    A ceramic and graphite split-flap device that ripples each flap into your message.

  • Interactive 3D Globe component preview

    Interactive 3D Globe

    A 3D Earth lit day and night from the real sun position, wrapped in a soft atmosphere, with smooth drag-to-orbit controls.

  • Animated Code Diff Viewer component preview

    Animated Code Diff Viewer

    Inline or toggled code diffs rendered inside the same polished code block frame, flipping between before and after.

  • Animated Terminal component preview

    Animated Terminal

    A terminal UI with self-typing commands, CRT phosphor glow and scanlines, streaming output that never re-renders a line.