BackgroundFloating Shapes Background
Floating Shapes Background
A dynamic animated background component with floating geometric shapes. Supports customizable shape count, animation duration, and easing for enhanced visual effects.
Overview
Floating Shapes Background
is a visually engaging React component that creates an animated background with floating geometric shapes. It allows full customization of the number of shapes, animation duration, and easing functions, making it versatile for different UI designs.
This component is useful for adding subtle motion effects to backgrounds, enhancing user engagement while maintaining a clean aesthetic. It utilizes motion/react
for smooth animations and is built with Tailwind CSS for easy styling.
Preview
Usage
Code
Props
Prop | Type | Default |
---|---|---|
numShapes | number | 20 |
duration | number | 10 |
easing | "linear" | "easeIn" | "easeOut" | "easeInOut" | 'easeInOut' |
className | string | - |