Kinetic UI
Back to Introduction
creative

MacBook Scroll Reveal

An interactive 3D MacBook mockup that opens its lid as you scroll down the page.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add macbook-scroll-reveal
macbook-scroll-reveal-demo

Installation

npx kinetic-ui-cli add macbook-scroll-reveal

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { MacBookScrollReveal } from "@/components/creative/macbook-scroll-reveal";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { MacBookScrollReveal } from "@/components/creative/macbook-scroll-reveal";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <MacBookScrollReveal
        src="example"
        title="example"
        badge="example"
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.