Corona Disc
A dark shape in front of a soft, two-color corona of light that peeks toward the pointer and flares on click.
pixikit.com/docs/effects/corona-disc
Customize
Preset
Colors2 of 10
Background color
Shape
Size0.36
Offset x0.00
Offset y0.00
Rotation0°
Spin2.0°/s
Roundness0.20
Wobble0.030
Light angle-35°
Light offset0.12
Corona1.00
Intensity1.00
Rim1.00
Softness0.20
Contrast0.35
Interior0.00
Streaks0.00
Ambient0.35
Speed1.00
Parallax0.50
Interactive
Flare strength1.00
Bloom0.50
Grain0.30
Intro
Paused
Dpr2.0
Props
34| Name | Type | Default | Description |
|---|---|---|---|
preset | "totality" | "lagoon" | "gilded" | "twin" | "verdant" | "ember" | "prism" | "shard" | "totality" | A complete look; the shape, light and color props follow it until you pass them. |
colors | string[] | ["#5227FF", "#FF9FFC"] | Two colors of the light: the side the light comes from, then the far side. |
backgroundColor | string | "transparent" | Backdrop color; the shape is cut out in it. "transparent" shows the page. |
shape | "circle" | "blob" | "triangle" | "diamond" | "pentagon" | "hexagon" | "circle" | Outline of the dark shape. |
size | number | 0.36 | Radius of the shape as a fraction of the height. |
offsetX | number | 0 | Moves the shape sideways, as a fraction of the width. |
offsetY | number | 0 | Moves the shape up or down, as a fraction of the height. |
rotation | number | 0 | Turn of the shape in degrees. |
spin | number | 2 | Steady turn in degrees per second. |
roundness | number | 0.2 | How rounded the corners of the angular shapes are. |
wobble | number | 0.03 | Slow breathing of the outline. |
lightAngle | number | -35 | Side the light sits on, in degrees from the top. |
lightOffset | number | 0.12 | How far the light sits from the center of the shape. |
corona | number | 1 | Reach of the glow around the shape. |
intensity | number | 1 | Brightness of the light. |
rim | number | 1 | Brightness of the thin edge of light on the shape. |
softness | number | 0.2 | Blur of the shape edge. |
contrast | number | 0.35 | How quickly the glow falls off. |
interior | number | 0 | How much light leaks into the shape. |
streaks | number | 0 | Rays that reach out of the corona. |
ambient | number | 0.35 | Faint haze over the whole area. |
speed | number | 1 | Animation speed; 0 holds the frame. |
parallax | number | 0.5 | How far the light peeks around the shape toward the pointer. |
interactive | boolean | true | A click or tap makes the light flare out from that side of the shape. |
flareStrength | number | 1 | Brightness of the flare a click sends out, 0 to 2. |
bloom | number | 0.5 | Wide soft glow over the light. |
grain | number | 0.3 | Film grain strength. |
intro | boolean | true | On mount the light swells from behind the shape. |
paused | boolean | false | Freezes the animation. |
dpr | number | 2 | Upper limit for the device pixel ratio. |
ref | Ref<CoronaDiscHandle> | None | Gives flare(x, y) and replay(). |
className | string | None | Classes for the root element; give it a height. |
style | CSSProperties | None | Inline styles for the root element. |
children | ReactNode | None | Content layered above the effect. |