Interactions
ShadersFree

Alpine Starscape

An interactive 3D OGL alpine elevation landscape with living cosmic aurora ribbons, starlight scintillations, periodic meteor streaks, and shockwaves.

Full-page view

Live preview

Interact with the effect here. Drag, hover, and use its controls.

Move cursor for 3D parallax • Click to trigger cosmic shockwave

Variation Tweaking

Adjust the options and see the preview update live.

Mode
1.2
1.2
1.4
1.3
1.1
0.85

Installation

Install automatically via CLI or manually integrate dependencies and code.

$npx @istmx/ui add alpine-starscape

Usage

Import the component and configure visual variants, sizes, and operational states.

import { AlpineStarscape } from '@/components/interactions/alpine-starscape'
 
<div className="relative h-[520px] w-full overflow-hidden rounded-3xl border border-border bg-black">
<AlpineStarscape
imageSrc="/assets/images/hero-starscape.jpg"
mode="aurora"
parallaxStrength={1.2}
particlesDensity={1.2}
meteorSpeed={1.4}
twinkle={1.3}
auroraIntensity={1.1}
bloom={0.85}
className="size-full"
/>
</div>

Composition

Compose with icons, form triggers, and layout containers.

<div className="relative h-[540px] w-full overflow-hidden rounded-3xl border border-border bg-black">
<AlpineStarscape imageSrc="/assets/images/hero-starscape.jpg" mode="aurora" className="size-full" />
<div className="absolute inset-0 flex flex-col items-center justify-center p-8 text-center">
<span className="rounded-full border border-white/20 bg-black/40 px-3.5 py-1 text-xs font-mono text-white/80 backdrop-blur-md">
IstmX UI • OGL 3D Starscape
</span>
<h1 className="mt-4 font-grotesk text-4xl font-bold tracking-tight text-white sm:text-5xl">
Alpine Ridge & Living Aurora
</h1>
</div>
</div>

API Reference

Property matrix, types, defaults, and usage descriptions.

PropTypeDefaultDescription
imageSrcstring'/assets/images/hero-starscape.jpg'URL or local path to the starscape ridge photograph.
mode
'aurora''celestial''nebula''monochrome'
'aurora'Visual atmosphere mode.
parallaxStrengthnumber1.2Strength of cursor-driven parallax.
particlesDensitynumber1.2Density of procedural particles.
meteorSpeednumber1.4Speed of meteor streaks.
twinklenumber1.3Star twinkle intensity.
auroraIntensitynumber1.1Brightness of the aurora curtain.
bloomnumber0.85Highlight bloom intensity.
interactivebooleantrueWhether pointer movement and clicks drive the shader.
classNamestring''CSS class names for the container.

Data Attributes

State-reflecting DOM attributes for custom selector styling.

This component does not expose custom data attributes. Standard HTML data attributes are forwarded to its interactive element.

How It Works

Built with OGL, an analytical depth-field shader reconstructs the 3D elevation geometry between starry sky, mountain ridge, and forest. Real-time domain-warped FBM generates a dynamic aurora borealis curtain while stardust twinkles and meteors shoot across the atmosphere.

Accessibility

The OGL WebGL canvas is marked as decorative and aria-hidden; respects prefers-reduced-motion to freeze high-velocity particles and celestial motion.

Keyboard Navigation
TabReach any interactive controls or overlay buttons.

Limitations

•Requires WebGL support with OGL.
•Best used with 16:9 or panoramic hero aspect ratios.

Features

•Analytical mountain ridge depth and stereoscopic 3D parallax.
•Domain-warped procedural aurora borealis with cyan/violet chromatic dispersion.
•Scintillating starlight micro-frequency twinkle and procedural stardust particles.
•Periodic diagonal meteor streaks with exponential ion trails.
•Click-to-shockwave cosmic gravitational wave distortion.
•Graceful DPR capping and context preservation without memory leaks.
Credits

Meet the team behind the interaction

Crafted for modern web applications and AI agent workflows.

Aryan

Aryan

@istmX

Building high-performance interfaces, developer tooling, and autonomous agent workflows.

Helped by
Ella

Ella

UI/UX Designer

Crafting beautiful experiences.

Kenji

Kenji

WebGL & Shader Designer

Bringing visuals to life.

Sarah

Sarah

Motion Designer

Animating the details.