Sun Shafts
Shafts of light fanning out from an edge or corner, with haze, a glow at the source, a cursor that turns the beam and casts a shadow, and a pulse of light on click.
pixikit.com/docs/effects/sun-shafts
Customize
Rays origin
Rays color
Rays speed1.00
Light spread0.50
Ray length3.0
Ray density1.0
Tilt0
Ray sharpness0.35
Glow0.60
Haze0.25
Atmosphere1.0
Intensity1.00
Pulsating
Fade distance1.00
Saturation1.00
Follow mouse
Mouse influence0.10
Cursor shadow
Click pulse
Noise amount0.00
Distortion0.00
Intro
Light mode
Opacity1.00
Props
27| Name | Type | Default | Description |
|---|---|---|---|
raysOrigin | "top-center" | "top-left" | "top-right" | "left" | "right" | "bottom-center" | "bottom-left" | "bottom-right" | "top-center" | Where the light comes from: 'top-center', 'top-left', 'top-right', 'left', 'right', 'bottom-center', 'bottom-left' or 'bottom-right'. |
raysColor | string | "#ffffff" | Color of the light. |
raysSpeed | number | 1 | Animation speed. 0 freezes the rays. |
lightSpread | number | 0.5 | How wide the beam opens. Lower values give a tight spotlight. |
rayLength | number | 3 | How far the rays reach, in container widths. |
rayDensity | number | 1 | How many separate shafts the beam splits into. |
tilt | number | 0 | Turns the beam by this many degrees. |
raySharpness | number | 0.35 | How crisp the edges of the shafts are, from 0 to 1. |
glow | number | 0.6 | Brightness of the glow around the light source. |
haze | number | 0.25 | Drifting haze that breaks the shafts up, like dust in the air, from 0 to 1. |
atmosphere | number | 1 | How much the light cools toward blue as it travels away from the source, from 0 to 1. |
intensity | number | 1 | Overall brightness of the light. |
pulsating | boolean | false | The rays slowly breathe brighter and dimmer. |
fadeDistance | number | 1 | How far the rays travel before they dim, in container widths. |
saturation | number | 1 | Color saturation of the light. |
followMouse | boolean | true | The beam turns toward the cursor. |
mouseInfluence | number | 0.1 | How far the beam turns toward the cursor, from 0 to 1. |
cursorShadow | boolean | true | The cursor blocks the light and casts a soft shadow down the rays. |
clickPulse | boolean | true | Clicking sends a wave of light down the rays. |
noiseAmount | number | 0 | Film grain over the rays, from 0 to 1. |
distortion | number | 0 | Makes the rays waver as if seen through heat. |
intro | boolean | true | The rays grow out from the source on mount. |
lightMode | boolean | false | Prints the light as soft colored ink so it sits on light pages. |
opacity | number | 1 | Overall opacity, from 0 to 1. |
maxDevicePixelRatio | number | 2 | Highest pixel ratio the canvas renders at. |
className | string | None | |
style | CSSProperties | None |