A powerful animation builder plugin for Stagewise.io that provides an intuitive interface for creating and configuring animations across multiple animation libraries.
- Multiple Animation Types: Support for CSS Transitions, CSS Keyframes, Motion React, React Spring, GSAP, and Lottie
- Visual Configuration: User-friendly interface for animation properties
- Flexible Property Selection: Choose from common CSS properties or add custom ones
- Advanced Controls: Configure duration, easing, delay, iterations, direction, and fill modes
- Real-time Preview: Test animations with instant feedback
- Code Generation: Automatic generation of animation code for different libraries
This is a Turborepo monorepo containing:
packages/plugin/- The main animation plugin packageapps/example-app/- Next.js example application demonstrating plugin usage
- Node.js ≥18
- pnpm (recommended package manager)
- Clone the repository:
git clone <repository-url>
cd stagewise-animation-plugin- Install dependencies:
pnpm install- Start development:
pnpm devThis will start both the plugin build in watch mode and the example application.
pnpm dev- Start development servers for all packagespnpm build- Build all packages for productionpnpm lint- Run linting across all packagespnpm format- Format code using Prettierpnpm check-types- Run TypeScript type checking
The main plugin code is located in packages/plugin/src/:
index.tsx- Main plugin exportcomponent.tsx- Animation builder component with full UI and logic
The example app demonstrates how to integrate the animation plugin with Stagewise toolbar in a Next.js application.
- CSS Transitions: Simple property transitions with customizable duration and easing
- CSS Keyframes: Complex multi-step animations with keyframe control
- Motion React: Modern React animation library integration
- React Spring: Spring-physics based animations
- GSAP: Professional-grade animation library support
- Lottie: After Effects animation integration
- Duration: Animation timing in milliseconds
- Easing: Various easing functions (ease, ease-in, ease-out, cubic-bezier, etc.)
- Delay: Animation start delay
- Iterations: Number of animation repetitions (including infinite)
- Direction: Animation direction (normal, reverse, alternate, alternate-reverse)
- Fill Mode: How animation properties are applied (none, forwards, backwards, both)
- Properties: Animatable CSS properties (opacity, transform, colors, dimensions, etc.)
Choose from common CSS properties:
- Opacity
- Transform
- Background Color
- Color
- Width/Height
- Margin/Padding
- Border
- Box Shadow
- Border Radius
Or add custom properties for advanced use cases.
This plugin is designed to work with the Stagewise toolbar system. To integrate:
- Install the plugin in your Stagewise-enabled application
- Import and register the
AnimationPlugin - The plugin will appear in your Stagewise toolbar interface
import { AnimationPlugin } from 'stagewise-animation-plugin';
// Register with Stagewise toolbar
// (Specific integration depends on your Stagewise setup)AGPL-3.0-only
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
For issues and questions:
Built with ❤️ by tiq UG (haftungsbeschränkt)