Skip to content

Installation

There are three ways to get an effect into your project. All of them give you plain source files that you own and can edit.

With the znverse CLI

Run this in your project folder, the one with package.json:

bash
npx znverse add tilt-card

You can install several effects, or a whole kit, at once:

bash
npx znverse add tilt-card spotlight-card magnetic-button
npx znverse add kits/micro-interactions

The CLI shows every file before it writes anything, installs npm packages with the package manager your lockfile points to, and prints the import line for each effect. See the CLI reference for every option.

With the shadcn CLI

znverse publishes a registry in the shadcn format, so projects that already use shadcn can install effects the same way as their other components:

bash
npx shadcn@latest add https://znverse.vercel.app/r/tilt-card.json

Kits work too: https://znverse.vercel.app/r/kits/landing-page.json. The Registry API describes the files.

By copying the source

Every free effect page has a Get the code panel with each source file and a copy button. Copy the files into your project and install the packages listed under the install command. This always works, including for effects that cannot be installed automatically.

Where the files go

Effect frameworkFolder
Reactcomponents/znverse/<effect>/, inside src/ when your project has a src folder
CSScomponents/znverse/<effect>/, the same as React
HTMLpublic/znverse/<effect>/ at the project root

React effects are imported with the @/ alias, for example @/components/znverse/tilt-card/TiltCard. If your project has no @/ alias, add one to tsconfig.json or import the file with a relative path. The CLI warns you when the alias is missing.

HTML effects are complete pages. Open them at /znverse/<effect>/index.html, or copy their markup into your own page.

Dependencies

Each effect lists what it needs on its page, under the install command:

  • React effects install their npm packages, such as gsap or motion, through the CLI.
  • HTML effects load their libraries from a CDN in the page itself, so nothing is installed.
  • Many effects need nothing at all. Use the No dependencies filter to find them.

Effects that cannot be installed automatically

Some effects are copy-only. Their page explains why:

ReasonWhat to do
The effect ships images or other binary assetsCopy the files from the source panel, including the assets
The effect imports shared files outside its own folderCopy the files and the shared helpers they import
The effect is a full projectUse the Open on GitHub, Clone or Download ZIP buttons
The effect is premiumThe source is locked