Galaxy Field
A starfield you fly through: layered stars with glow, cross flares and twinkle that part around the pointer and jump to warp speed on click.
pixikit.com/docs/effects/galaxy-field
Customize
Star colors0 of 10
Hue shift140
Saturation0.00
Density1.00
Glow intensity0.30
Star size1.00
Flare intensity1.00
Twinkle intensity0.30
Star speed0.50
Speed1.00
Rotation speed0.10
Layers4
Direction
Mouse interaction
Mouse repulsion
Repulsion strength2.0
Auto center repulsion0.0
Click warp
Intro
Transparent
Background color
Light mode
Opacity1.00
Disable animation
Props
29| Name | Type | Default | Description |
|---|---|---|---|
starColors | string[] | None | Up to four colors the stars are picked from. Replaces the hue shift and saturation coloring. |
hueShift | number | 140 | Shifts the hue of the stars, in degrees. |
saturation | number | 0 | Color saturation of the stars, from 0 to 1. |
density | number | 1 | How densely the stars are packed. |
glowIntensity | number | 0.3 | Brightness of the glow around each star. |
starSize | number | 1 | Size of each star glow. |
flareIntensity | number | 1 | Strength of the cross flares on the brightest stars. |
twinkleIntensity | number | 0.3 | How much the stars twinkle, from 0 to 1. |
starSpeed | number | 0.5 | How fast you travel through the stars. |
speed | number | 1 | Overall speed of the animation. |
rotationSpeed | number | 0.1 | How fast the starfield rotates. |
layers | number | 4 | Number of star layers, from 2 to 8. |
direction | "forward" | "backward" | "forward" | Whether you fly into the stars or drift back out of them. |
mouseInteraction | boolean | true | Lets the cursor interact with the stars. |
mouseRepulsion | boolean | true | Pushes the stars away from the cursor. When off, the field shifts with the cursor instead. |
repulsionStrength | number | 2 | Strength of the push away from the cursor. |
autoCenterRepulsion | number | 0 | Pushes the stars away from the center without the cursor. 0 turns it off. |
clickWarp | boolean | true | Clicking jumps forward at warp speed. |
intro | boolean | true | Drops out of warp speed on mount. |
focal | [number, number] | FOCAL | Center of the starfield, from 0 to 1. |
rotation | [number, number] | ROTATION | Fixed rotation of the starfield as a [cos, sin] pair. |
transparent | boolean | true | Shows the page behind the stars. When off, the stars sit on the background color. |
backgroundColor | string | "#000000" | Background behind the stars when transparent is off, or the paper color in light mode. |
lightMode | boolean | false | Draws the stars as ink for light backgrounds. |
opacity | number | 1 | Opacity of the whole effect. |
disableAnimation | boolean | false | Freezes the animation. |
dpr | number | None | Maximum device pixel ratio, capped at 2. |
className | string | None | |
style | CSSProperties | None |