Skip to content
Free for Aperveil 1.0 WebGPU shader

Light Streaks: Light, dragged across the frame.

A long-exposure light background for React: glossy rods of light and shade with soft shadows sweep across a pale ground, rendered live in WebGPU.

Part of the Free collection for Aperveil 1.0. Public live preview and Color Looks are open. Free Export Kits do not require an account. Purchasing is not available yet.

Color Looks

Free for Aperveil 1.0React · Vue · HTML · WordPress · FramerRaw WGSL

Inside Light Streaks.

Light Streaks lays a satin sheet of color along one direction and gathers it on one side of the frame, leaving the other side clear for copy. Across it, streaks lie like rods: rods of light in the sheen color that glow, and rods of shade in the deep color, each lit from the upper left with a fine bright line and laying a soft shadow on the sheet. Every streak brightens and fades along its length, so the light seems dragged through a long exposure. The pointer is a lamp held over the exposure: as it passes, the fine bright lines slide across the rods and the rods of light near it glow brighter.

Light Streaks is drawn, not filmed: it does not blur your own images or video, and its streaks run in one direction at a time. It is not a photograph or a motion-blur pass.

3.539 ms GPU timestamp median; p95 8.323 ms. 1440x900 @ dpr 1.25; Apple M2 (8-core GPU), Metal driver on macOS Version 26.6.2 (Build 25G83); measured 2026-10-18. This is a recorded headless sample, not a browser FPS or mobile-performance guarantee.

Angle

The direction the streaks run, in degrees from horizontal.

Coverage

How much of the frame the colored field fills, from a narrow band at the edge to all of it.

Edge softness

How gently the field fades into the clear ground.

Streaks

How many streaks cross the field.

Color Looks preserve these settings. Open the editor for all 18 controls.

From preview to your project.

Choose a Look, tune it in the editor, then download the Export Kit. Install the runtime and copy the generated component into your project.

Every control in the editor is a typed prop. Leave a prop out to keep the value you exported; change one and the running shader updates without restarting. Give the surface a size and pass fallback for browsers without WebGPU.

The component is already marked "use client": in Next.js, import it into any page or layout and give its container an explicit size. Keep headings, links and accessible content in HTML above the decorative canvas.

Part of the Free collection for Aperveil 1.0. Public live preview and Color Looks are open. Free Export Kits do not require an account. Purchasing is not available yet.

Open editor & export
Markdown guide

Usage example — download LightStreaks.tsx from the editor first. This example imports that local file; it is not the shader component itself.

Terminal
npx @aperveil/cli add shader light-streaks --framework react
LightStreaks usage
"use client";

import LightStreaks from "./components/aperveil/light-streaks/LightStreaks";

export default function Hero() {
  return (
    <LightStreaks
      className="hero-shader"
      angle={48} colorA="#ffc964"
      fallback={<div className="hero-shader-fallback" />}
    />
  );
}

// .hero-shader { width: 100%; height: 560px; }

Add it with npx @aperveil/cli add shader light-streaks, or download the Export Kit from the editor and copy the component into your project.

Usage example for vue/LightStreaks.vue from the Export Kit. Vue 3.5 or newer, Nuxt included: it renders an empty canvas on the server and starts in the browser, so it needs no <ClientOnly>.

Terminal
npx @aperveil/cli add shader light-streaks --framework vue
LightStreaks usage
<script setup lang="ts">
import LightStreaks from "./components/aperveil/light-streaks/vue/LightStreaks.vue";
</script>

<template>
  <LightStreaks class="hero-shader" :angle="48" color-a="#ffc964">
    <template #fallback><div class="hero-shader-fallback" /></template>
  </LightStreaks>
</template>

<!-- .hero-shader { width: 100%; height: 560px; } -->

Same props and values as the React component.

Usage example for html/aperveil-light-streaks.js from the Export Kit. No install and no build step: keep the two files of the kit's html folder together.

index.html
<script type="module" src="./aperveil-light-streaks.js"></script>

<aperveil-light-streaks class="hero-shader" angle="48" color-a="#ffc964">
  <div slot="fallback" class="hero-shader-fallback"></div>
</aperveil-light-streaks>

<style>
  .hero-shader { display: block; width: 100%; height: 560px; }
</style>

Same props and values as the React component.

Download aperveil-shader-light-streaks.zip from the editor: Install, then WordPress. WordPress 6.5 or newer: a plugin with a block that holds your own content in front of the shader, and a shortcode for page builders.

Shortcode
[aperveil_light_streaks height="560px" overlay="20"]
  <h2>Your headline</h2>
  <p>Your text, in front of the shader.</p>
[/aperveil_light_streaks]

The values you choose in the editor are baked into the plugin.

Copy LightStreaks.tsx from the editor: Install, then Framer. It opens on the values you chose.

  1. In Framer, open Assets, then Code, and add a new code file named LightStreaks.
  2. Replace its sample code with your copy and save.
  3. Drag Light Streaks onto the canvas. Its Color Looks and every control are in the property panel.

The same controls as the React component, in Framer's panel. Framer guide

colorA · `#${string}` = "#ffc964"
First color. The palest streaks, at the edge of the field. Accepts #RRGGBB.
colorB · `#${string}` = "#f98f30"
Second color. The streaks further in. Accepts #RRGGBB.
colorC · `#${string}` = "#ee7a5c"
Third color. Deeper still. Accepts #RRGGBB.
colorD · `#${string}` = "#8e5a88"
Deep color. The darkest bands, deep in the field. Accepts #RRGGBB.
sheenColor · `#${string}` = "#fff4dc"
Sheen. The fine bright lines of the exposure. Accepts #RRGGBB.
background · `#${string}` = "#fdf0e7"
Background. The clear ground the streaks fade into. Accepts #RRGGBB.
angle · number = 48
Angle. The direction the streaks run, in degrees from horizontal. Accepts -90–90, step 1.
coverage · number = 0.74
Coverage. How much of the frame the colored field fills, from a narrow band at the edge to all of it. Accepts 0–1, step 0.01.
edgeSoftness · number = 0.45
Edge softness. How gently the field fades into the clear ground. Accepts 0.02–1, step 0.01.
streaks · number = 18
Streaks. How many streaks cross the field. Accepts 4–20, step 1.
width · number = 1
Width. How broad the streaks are. Accepts 0.3–3, step 0.01.
softness · number = 0.6
Blur. How motion-blurred the streaks are across their width. Accepts 0–1, step 0.01.
sheen · number = 0.8
Sheen. How bright the fine lines of light are. Accepts 0–2, step 0.01.
flowSpeed · number = 1
Speed. How fast the light travels along the streaks. Accepts 0–3, step 0.01.
drift · number = 1
Drift. How far the streaks drift across the frame. Accepts 0–2, step 0.01.
interaction · number = 0.8
Pointer light. How strongly the pointer lights the exposure, like a lamp held over it: the fine lines slide across the rods as it passes and the rods of light near it glow. Accepts 0–1, step 0.01.
opacity · number = 1
Opacity of the whole effect, background included. It is applied inside the shader; do not fade the element again in CSS. Accepts 0–1, step 0.01.
backgroundOpacity · number = 1
Background opacity. Fade the background independently for transparent overlays. Accepts 0–1, step 0.01.
className · string
Size and place the surface. The canvas fills this box, so give it a width and a height.
style · CSSProperties
Inline styles for the surface box.
paused · boolean = false
Holds the current frame. Use it for a pause control or for sections scrolled out of view.
fallback · ReactNode = null
Shown instead of the canvas without WebGPU. Also shown if rendering fails. A poster image or a CSS gradient works well.
onReady · () => void
The first frame has been drawn.
onError · (error: unknown) => void
Rendering failed; the fallback is shown.

Every prop is optional. Numbers are clamped to their range; an invalid value keeps the default.

Made for a real interface.

Open a product launch, a SaaS hero or a portfolio on a pale ground with energy along one side: the streaks gather where you set the field, and the clear side holds a heading and a call to action.

Light Streaks used behind an example interface
LUMEN & COExample composition

Architectural lighting

Spaces drawn in light.

An illustrative studio front page with long-exposure light gathered along one side of the hero.

Practice

Retail, hospitality, galleries

Studio

Copenhagen

Illustrative layout, not a customer project. The image is a still preview of the selected Look.

An illustrative layout. Your content stays in HTML; the shader sets the atmosphere.

Try this surface in the editor

Before you ship.

What this surface does, where it fits, and where it stops.

Yes. Coverage sets how much of the frame the streaks fill and Edge softness how gently they fade into the ground; Angle turns the whole sweep. The clear side stays the plain background color.

Each streak is lit as a rod: one side catches a light from the upper left with a fine bright line, the other falls off, and it lays a soft shadow on the satin sheet beneath. Sheen sets how brightly the rods of light glow.

It is a lamp held over the exposure: near it the light comes from the pointer, so the fine bright lines slide across the rods as it passes and the rods of light near it glow. Pointer light sets how strongly.

This landing shows a still poster of your selected Color Look. The raw WGSL needs a WebGPU host. Landing posters are not bundled in the Export Kit: add your own fallback around the exported component.

Part of the Free collection for Aperveil 1.0. Public live preview and Color Looks are open. Free Export Kits do not require an account. Purchasing is not available yet. Follow the license notices supplied with the source you download. The planned Free collection permits personal and commercial interface projects.
All light shaders

Make Light Streaks yours.

Open editor