Skip to Content
šŸŽ‰Introducing Pumki UI
AnimationsGalaxy Background

Galaxy Animation

A mesmerizing Dynamic 3D galaxy for your interactive background with twinkling stars and cosmic elements.

Pumki UIPumki UI

Installation

Usage


1import Galaxy from '@/components/pumki-ui/animations/galaxy'

1<Galaxy />

Example

Pumki UIPumki UI

Props

PropTypeDefaultDescription
focal[number, number][0.5, 0.5]Sets the focal point of the galaxy effect as [x, y] coordinates from 0 to 1
rotation[number, number][1.0, 0.0]Controls the rotation matrix of the galaxy as [x, y] rotation values
starSpeednumber0.5Controls the speed of star movement and animation
densitynumber1Controls the density of stars in the galaxy
hueShiftnumber140Shifts the hue of all stars by the specified degrees (0-360)
disableAnimationbooleanfalseWhen true, stops all time-based animations
speednumber1.0Global speed multiplier for all animations
mouseInteractionbooleantrueEnables or disables mouse interaction with the galaxy
glowIntensitynumber0.3Controls the intensity of the star glow effect
saturationnumber0.0Controls color saturation of stars (0 = grayscale, 1 = full color)
mouseRepulsionbooleantrueWhen true, stars are repelled by the mouse cursor
twinkleIntensitynumber0.3Controls how much stars twinkle (0 = no twinkle, 1 = maximum twinkle)
rotationSpeednumber0.1Speed of automatic galaxy rotation
repulsionStrengthnumber2Strength of mouse repulsion effect when mouseRepulsion is enabled
autoCenterRepulsionnumber0Creates repulsion from center of canvas. Overrides mouse repulsion when > 0
transparentbooleantrueMakes the black background transparent, showing only stars
Last updated on