← Gallery № 76 · webgl

Aurora Curtain

Vertical luminous threads swaying like aurora borealis curtains with warm-to-cool color gradient.

What is Aurora Curtain?

Aurora Curtain is a free WebGL web effect in the TappyPrism library. Vertical luminous threads swaying like aurora borealis curtains with warm-to-cool color gradient. It is rendered on the GPU by a fragment shader, so it costs almost nothing on the CPU and works well as a full-screen background. It ships as a single self-contained HTML file (aurora-curtain.html) with zero dependencies — no npm package, no framework, no build step. It exposes 4 live parameters — Wave Speed, Curtains, Amplitude, Rotation — adjustable in the browser or at runtime.

Parameters

ParameterKeyRangeDefault
Wave SpeedWAVE_SPEED0.2 – 31
CurtainsLINE_COUNT3 – 126
AmplitudeAMPLITUDE0.2 – 21
RotationROTATION-1.57 – 1.570

How to add Aurora Curtain to your page

  1. Download the standalone file aurora-curtain.html and copy its source into your project.
  2. Or embed it as a background iframe:
    <iframe src="https://prism.tappypotato.com/fx/aurora-curtain.html" style="position:fixed;inset:0;width:100%;height:100%;border:0;z-index:-1" title="Aurora Curtain"></iframe>
  3. Tune it at runtime with postMessage:
    iframe.contentWindow.postMessage({ type: 'param', name: 'WAVE_SPEED', value: 1 }, '*');

Frequently asked questions

What is Aurora Curtain?

Aurora Curtain is a free WebGL web effect in the TappyPrism library. Vertical luminous threads swaying like aurora borealis curtains with warm-to-cool color gradient. It is rendered on the GPU by a fragment shader, so it costs almost nothing on the CPU and works well as a full-screen background. It ships as a single self-contained HTML file (aurora-curtain.html) with zero dependencies — no npm package, no framework, no build step. It exposes 4 live parameters — Wave Speed, Curtains, Amplitude, Rotation — adjustable in the browser or at runtime.

How do I add Aurora Curtain to my website?

Download the standalone file at https://prism.tappypotato.com/fx/aurora-curtain.html and copy its source into your page, or embed it as a background iframe: <iframe src="https://prism.tappypotato.com/fx/aurora-curtain.html" style="position:fixed;inset:0;width:100%;height:100%;border:0;z-index:-1" title="Aurora Curtain"></iframe>. Tune it live with postMessage, e.g. iframe.contentWindow.postMessage({ type: 'param', name: 'WAVE_SPEED', value: 1 }, '*').