Overview
The Animated Form component creates an engaging account creation experience with progressive text animations and visual completion indicators. As users type their name and password, each character animates in sequentially, followed by animated checkmark circles that indicate field completion. Key features:- Progressive character-by-character text animation
- Animated checkmark circles with stroke and fill effects
- Automatic looping animation for demonstration purposes
- Customizable user name and animation delay
- Social media icons display at the bottom
- Responsive gradient styling with dark mode support
- Showcase authentication flows in demos or marketing materials
- Create engaging onboarding experiences
- Demonstrate form validation states
- Add visual interest to account creation processes
Installation
Usage
With custom props
Props
The delay in milliseconds before the animation restarts. Minimum value is 7000ms to ensure the complete animation sequence finishes.
The name to display in the animated form field. Each character will animate in sequentially.
Component structure
The component includes several sub-components:AnimatedCheckmarkCircle
An internal component that renders the animated checkmark with circle stroke and fill effects.Examples
- Default
- Custom name
- Slower animation
Customization
Animation timing
The animation timing is calculated based on the name length:- Name animation duration:
Math.ceil(name.length / 5)seconds - Password animation duration: 2 seconds
- Character stagger delay is evenly distributed across the duration
Styling
The component uses gradient backgrounds and borders that respond to dark mode:Checkmark color
Modify the checkmark color by updating the stroke and fill colors in the AnimatedCheckmarkCircle component:Dependencies
This component requires:motion/reactfor animationsreact-icons/iofor the checkmark iconreact-icons/fa6for the GitHub icon- Custom SVG icons for Shopify, Twitch, and YouTube
The component automatically loops the animation based on the delay prop. The minimum delay of 7000ms ensures all animations complete before restarting.