Vortex Background

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

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.

Component Code

You can copy and paste the following code to create these components:

Vortex.vue

Features

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

Credits