Skip to content
PixiKit

Hourglass Arcs

Fine arcs sweep in from both sides and pinch into a bright waist, like light through an hourglass laid on its side. Hovering quickens the sweep and a click sends a surge out along the arcs.

pixikit.com/docs/effects/hourglass-arcs

Customize

Preset
Colors2 of 10
Background color
Mode
Line count18
Thickness1.00px
Spread0.36
Ghost0.60
Glow1.00
Intensity1.00
Speed1.00
Breathe0.40
Angle0°
Center y0.50
Hue shift0°
Color cycle0.00
Surge1.00
Click surge
Hover boost0.50
Interactive
Paused

Props

26
NameTypeDefaultDescription
preset"aurora" | "dense" | "ember" | "mono" | "prism" | "still""aurora"A named look. Values you leave at their default follow it; anything you set wins.
colors[string, string]["#B19EEF", "#FF9FFC"]Colour of the arcs, then colour of the waist where they meet.
backgroundColorstring"#0A0A0A"Fill behind the arcs. Pass transparent to show the page.
mode"auto" | "glow" | "ink""auto"glow adds light for dark backdrops, ink draws solid lines for light ones, auto picks by the backdrop.
lineCountnumber18Number of solid arcs in the fan.
thicknessnumber1Arc thickness in CSS pixels.
spreadnumber0.36How far the fan opens at the edges, as a share of the height.
ghostnumber0.6How far the fainter arcs continue outside the fan. 0 hides them.
glownumber1Soft bloom around the arcs and the waist.
intensitynumber1Brightness of the arcs.
speednumber1How fast the arcs sweep through the fan. Negative values reverse the sweep.
breathenumber0.4How much the fan opens and closes over time.
anglenumber0Rotation of the whole figure in degrees.
centerYnumber0.5Vertical position of the waist, from 0 at the top to 1 at the bottom.
hueShiftnumber0Rotates both colours around the colour wheel, in degrees.
colorCyclenumber0How fast both colours drift back and forth around the wheel. 0 keeps them fixed.
surgenumber1Strength of the surge a click sends out.
clickSurgebooleantrueClicking the background sends a surge along the arcs.
hoverBoostnumber0.5How much the sweep quickens and the waist brightens under the pointer, from 0 to 2.
interactivebooleantrueResponds to hover and clicks.
pausedbooleanfalseFreezes the sweep.
qualitynumber1Render scale: 1 draws at up to twice the CSS resolution, lower values are cheaper.
refRef<HourglassArcsHandle>NoneGives surge().
childrenReactNodeNoneContent laid over the effect, such as a hero headline.
classNamestringNone
styleCSSPropertiesNone

Related