Updated
Genie Effect
ProCustomize
Duration0.52s
Curvature0.89
Pinch0.72
Stretch2.0
Mesh rows100
Window size450px
Installation
ProGenie Effect is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/genie-effect
Loading your installation…
Usage
import { GenieDock } from "@/components/uibrik/genie-effect/genie-dock";const items = [ { id: 1, src: "/registry/genie-effect/aurora-ice.webp", alt: "Northern lights over glacier ice", }, { id: 2, src: "/registry/genie-effect/waterfall.webp", alt: "Waterfall dropping into a green valley", }, // …3 more];<GenieDock duration={0.52} curvature={0.89} pinch={0.72} verticalStretch={2} meshResolution={100} windowSize={450} items={items}/>Where to use Genie Effect
Desktop-style web apps
Windows pouring into the dock make a browser-based desktop feel like macOS.
Window-metaphor portfolios
Minimising projects into a dock is a playful way to browse work.
Minimising panels
A WebGL genie shows where a panel went, so users can find it again.
Props
GenieDock- duration
- Type number
- 0.52
- Length of one minimize or restore.
- curvature
- Type number
- 0.89
- Bend of the funnel.
- pinch
- Type number
- 0.72
- How narrow the neck gets.
- verticalStretch
- Type number
- 2
- Vertical smear during travel.
- meshResolution
- Type number
- 100
- Rows in the warp mesh.
- windowSize
- Type number
- 450
- Window size (square).
- items
- Type DockItem[]
- DOCK_ITEMS
- Images in the dock: id, src, alt.