uibrik

Silk Vortex

Preview

Customize

Colors
Intensity1.60
Frequency0.55
Flow1.0
Twist0.60
Warp1.00
Width0.15
Lobes1.00
Length2.40
Softness0.50
Gloss0.80
Shine0.25
Refraction0.45
Chroma0.20
Vignette0.00
Angle-15°
Speed1.0
Grain0.030
Seed0
Lean0.50
Follow0.80

Usage

import { SilkVortex } from "@/components/uibrik/silk-vortex/silk-vortex";

<SilkVortex />

Installation

npx shadcn@latest add https://uibrik.com/r/silk-vortex.json
Adds the files to components/uibrik/silk-vortex. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/silk-vortex.

Props

SilkVortex
colors
Type string[]
["#000000","#0d00aa","#301fe9","#b166fe","#ffecff"]
The gradient light is mapped through, dark to bright, blended in OKLCH; 2 to 6 colours.
intensity
Type number
1.6
Brightness before the colour mapping.
frequency
Type number
0.55
How many folds.
flow
Type number
1
How fast the folds stream outward; negative flows inward.
twist
Type number
0.6
How much the dark arms curl as they leave the oval, like a vortex.
warp
Type number
1
Slow, broad sway of the whole shape.
hole
Type number
0.15
Width of the dark oval.
lobes
Type number
1
How strongly the light gathers on the two sides, leaving the oval's ends dark; 0 lights all round.
stretch
Type number
2.4
How many times longer the dark oval is than wide.
softness
Type number
0.5
Rounds the folds; lower pinches them into ridges.
gloss
Type number
0.8
Strength of the glossy highlights and rim.
shine
Type number
0.25
Size of the highlights: 0 is broad, 1 is pin-sharp.
refraction
Type number
0.45
How much the colour shifts along the slopes, as if refracted.
chroma
Type number
0.2
Colour split at the edges.
vignette
Type number
0
Darkening toward the corners; 0 keeps the liquid right to the edges.
angle
Type number
-15
Tilt.
speed
Type number
1
Animation speed; 1 is the designed pace.
grain
Type number
0.03
Film grain strength.
seed
Type number
0
Shifts the composition, so two backgrounds with the same settings still differ.
animate
Type boolean
true
Move on its own. Off draws one still frame.
interactive
Type boolean
true
React to the pointer.
lean
Type number
0.5
How far the void drifts toward the pointer.
follow
Type number
0.8
How lazily it follows the pointer, 0 (locked) to 1 (drifts after it).
children
Type ReactNode
–
Content shown on top of the background.
className
Type string
–
Classes for the box; it fills whatever size you give it.