Vortex Background

A wavy, swirly, vortex background ideal for CTAs and backgrounds.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/vortex.json"

Install Manually

Install the dependencies

npm
pnpm
bun
yarn
npm install simplex-noise

Copy and paste the following code

Vortex.vue

Example

Full page demo usage

API

Prop NameTypeDefaultDescription
classstringOptional className for styling the children wrapper.
containerClassstringOptional className for styling the container.
particleCountnumber700Number of particles to be generated.
rangeYnumber100Vertical range for particle movement.
baseHuenumber220Base hue for particle color.
baseSpeednumber0.0Base speed for particle movement.
rangeSpeednumber1.5Range of speed variation for particles.
baseRadiusnumber1Base radius of particles.
rangeRadiusnumber2Range of radius variation for particles.
backgroundColorstring"#000000"Background color of the canvas.

Features

  • Slot Support: Easily add any content inside the component using the default slot.

Credits