A comprehensive demo and educational playground for teaching Angular animations techniques, designed for a 1-hour knowledge-sharing session.
This project showcases various Angular animation techniques, from basic to advanced:
- Fade Card Demo - Simple entry/exit animations
- Toggle Panel - State-based animations
- Reusable Box - Reusable and parameterized animations
- Route Views - Route transition animations
- Node.js v18.19.0 or higher
- Angular CLI
# Clone the repository (if applicable)
git clone <repository-url>
# Navigate to project directory
cd angular-animations-playground
# Install dependencies
npm install
# Start the development server
npm startThe application will run at http://localhost:4200/
- Demonstrates
:enterand:leaveanimations using opacity - Shows how to animate elements being added to or removed from the DOM
- Shows state-based animations with the
@expandCollapsetrigger - Transitions between
expandedandcollapsedstates - Animates multiple properties simultaneously
- Demonstrates creating reusable animations with the
animation()function - Shows how to use
useAnimation()to reuse animations - Illustrates parameter customization for reused animations
- Demonstrates route transition animations
- Shows navigation between different views with smooth transitions
- Triggers, states, and transitions
- Entry and exit animations
- Parameterized animations
- Reusable animation libraries
- Route-based animations
Throughout the codebase, you'll find commented sections marked with // CHALLENGE indicating areas where participants can experiment and expand the animations.
This project is licensed under the MIT License.