Black Friday: 30% off Pro

Get 30% off

Updated

Genie Effect

Pro

Preview

Customize

Duration0.52s
Curvature0.89
Pinch0.72
Stretch2.0
Mesh rows100
Window size450px

Installation

Pro

Genie 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

  1. 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}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/genie-effect

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.