Bubbles Background
An animated background with floating bubbles.
Example
Without Blur or overlay
Note: This component uses Three.js & requires three
npm package as a dependency.
Please install Three.js using following commands.
API
Prop Name | Type | Default | Description |
---|---|---|---|
blur | number | 0 | Amount of blur to apply to the background, specified in pixels. |
Component Code
You can copy and paste the following code to create these components:
BubblesBg.vue
Features
- Animated Bubble Background: Renders a captivating background with animated, floating bubbles using 3D graphics.
- Dynamic Color Gradients: The bubbles and background smoothly transition between colors over time, creating a visually engaging effect.
- Customizable Blur Effect: Use the
blur
prop to adjust the blur intensity applied over the background, enhancing depth perception. - Slot Support: Easily overlay content on top of the animated background using the default slot.
- Responsive Design: The component adjusts to fit the width and height of its parent container, ensuring compatibility across different screen sizes.
Credits
- Built with the Three.js library for 3D rendering and animations.
- Inspired from Tresjs Experiment.