Cloud Reveal

v1.0.0
FreeShowcase & MediaWebGLpowered by @vectorvesper/motion

An image hidden under drifting mist. The pointer clears a soft hole that grows while it stays and closes again when it leaves. Shows the plain image under reduced motion.

Cloud Reveal

Installation

Step 1. Initialize ProjectOne-time setup

Run once in your project root to configure paths and dependencies:

npx vectorvesper init
Step 2. Add ComponentInstalls source & assets

Downloads and registers the component in your project:

npx vectorvesper add cloud-reveal
Step 3. Required DependenciesAuto-installed with CLI

If installing manually or managing your package lock:

npm install @vectorvesper/motion three
Packages:@vectorvesper/motionthree

Usage

A hero that makes the visitor look for the picture: a launch reveal, a teaser, an editorial cover. Set the mist to your page colour so the image seems to sit under the page itself.

Usage

import { CloudReveal } from "@/components/vv/cloud-reveal";

export function Hero() {
  return (
    <CloudReveal
      src="/archway.jpg"
      alt="A glowing pink archway set into a pale blue wall"
      color="#f4f3f0"
    />
  );
}

Do

  • Match color to the background around it, so the mist reads as part of the page.
  • Lower opacity to let a faint version of the image show through before anyone points at it.

Don't

  • Do not put essential content only in the image: until someone points at it, the mist hides it.

WebGL — render it on the client only

On Next.js, load it with ssr: false from a Client Component, as below. Vite apps need nothing extra.

"use client";

import dynamic from "next/dynamic";

const CloudReveal = dynamic(
  () => import("@/components/vv/cloud-reveal").then((m) => m.CloudReveal),
  { ssr: false }
);
This component respects prefers-reduced-motion and provides a graceful fallback.

Props

An image hidden under drifting mist. The pointer clears a soft, ragged hole that grows while it stays and closes again when it leaves.

<CloudReveal />

The image and the mist over it. Fills the area, which is 100svh tall unless you size it.

PropTypeDefaultDescription
src*string—The image under the mist. It fills the area the way `object-fit: cover` does.
alt*string—What the image shows, for screen readers.
positionstring"50% 50%"Which part of the image stays in view when it is cropped, as CSS `object-position`.
colorstring"#f4f3f0"The colour of the mist.
opacitynumber1How much of the image the mist hides, 0 to 1.
radiusnumber0.3The size of the opening, as a share of the height.
softnessnumber0.1How soft the opening's edge is.
roughnessnumber0.15How ragged the opening's edge is.
scalenumber4How fine the mist's grain is.
speednumber0.5How fast the mist drifts.
distortionnumber0How much the image ripples around the opening.
classNamestring—Sizes the area. Without a height it is 100svh tall.
styleReact.CSSProperties—Inline styles for the area. A height here wins over the default.
childrenReact.ReactNode—Content drawn over the mist.
Under reduced motion it shows the plain image, with no mist.
Runs on the Vector Vesper runtime: it stops drawing when it is off screen, draws at a lower resolution on a slow device, and comes back by itself if the browser drops its graphics context.
Client component. It renders its still state on the server and starts drawing once it mounts, so it is safe in a server-rendered route.

Source

/**
 * Cloud Reveal — Vector Vesper
 * https://vectorvesper.dev/components
 *
 * Copyright (c) 2026 Vector Vesper
 * Released under the MIT License. This notice must be retained in copies and
 * substantial portions of the file. https://vectorvesper.dev/license
 */
export * from "./CloudReveal";
export { default } from "./CloudReveal";
View on GitHubReport an issue