Skip to content
PixiKit

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
NameTypeDefaultDescription
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.
colorsstring[]["#5227FF", "#FF9FFC"]Two colors of the light: the side the light comes from, then the far side.
backgroundColorstring"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.
sizenumber0.36Radius of the shape as a fraction of the height.
offsetXnumber0Moves the shape sideways, as a fraction of the width.
offsetYnumber0Moves the shape up or down, as a fraction of the height.
rotationnumber0Turn of the shape in degrees.
spinnumber2Steady turn in degrees per second.
roundnessnumber0.2How rounded the corners of the angular shapes are.
wobblenumber0.03Slow breathing of the outline.
lightAnglenumber-35Side the light sits on, in degrees from the top.
lightOffsetnumber0.12How far the light sits from the center of the shape.
coronanumber1Reach of the glow around the shape.
intensitynumber1Brightness of the light.
rimnumber1Brightness of the thin edge of light on the shape.
softnessnumber0.2Blur of the shape edge.
contrastnumber0.35How quickly the glow falls off.
interiornumber0How much light leaks into the shape.
streaksnumber0Rays that reach out of the corona.
ambientnumber0.35Faint haze over the whole area.
speednumber1Animation speed; 0 holds the frame.
parallaxnumber0.5How far the light peeks around the shape toward the pointer.
interactivebooleantrueA click or tap makes the light flare out from that side of the shape.
flareStrengthnumber1Brightness of the flare a click sends out, 0 to 2.
bloomnumber0.5Wide soft glow over the light.
grainnumber0.3Film grain strength.
introbooleantrueOn mount the light swells from behind the shape.
pausedbooleanfalseFreezes the animation.
dprnumber2Upper limit for the device pixel ratio.
refRef<CoronaDiscHandle>NoneGives flare(x, y) and replay().
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.
childrenReactNodeNoneContent layered above the effect.

Related