Wavy Background
A cool background effect with waves that move.
Note: This component uses simplex-noise & requires simplex-noise
npm package as a dependency.
Please install simplex-noise using following commands.
API
Prop Name | Type | Default | Description |
---|---|---|---|
class | string | - | The content to be displayed on top of the wavy background. |
containerClass | string | - | The CSS class to apply to the content container. |
colors | string[] | ["#38bdf8", "#818cf8", "#c084fc", "#e879f9", "#22d3ee"] | The colors of the waves. |
waveWidth | number | 50 | The width of the waves. |
backgroundFill | string | "black" | The background color. |
blur | number | 10 | The blur effect applied to the waves. |
speed | "slow" | "fast" | "fast" | Range of speed variation for particles. |
waveOpacity | number | 0.5 | Base radius of particles. |
[key: string] | any | - | Range of radius variation for particles. |
Component Code
You can copy and paste the following code to create these components:
WavyBackground.vue
Features
- Slot Support: Easily add any content inside the component using the default slot.
Credits
- Credits to Aceternity UI.
- Credits to SivaReddy Uppathi for porting this component.