Kinetic UI
Back to Introduction
Scrollytelling

Parallax Curtain Reveal

Dual-layer curtain reveal image container driven by scroll depth.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add parallax-curtain-reveal
Parallax Curtain Reveal
Bottom Layer
Top Layer

Curtain Reveal

Hover or drag slider to reveal the dual-layer background artwork

Installation

npx kinetic-ui-cli@latest add

Props

Pass image URLs, reveal direction, and curtain parallax depth factor.

Usage Guide

1. Import the Component

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

import { ParallaxCurtainReveal } from "@/components/creative/parallax-curtain-reveal";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { ParallaxCurtainReveal } from "@/components/creative/parallax-curtain-reveal";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <ParallaxCurtainReveal
        imageTop="example"
        imageBottom="example"
        title="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.