Animation
Animations bring dynamic visual interactions to your Aurelia applications, enhancing user experience by smoothly transitioning elements' styles over time.
Installing the Animation Plugin
npm install aurelia-animator-cssConfiguring the Animation Plugin
import { PLATFORM } from 'aurelia-pal';
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin(PLATFORM.moduleName('aurelia-animator-css')); // Add the animation plugin here
aurelia.start().then(a => a.setRoot());
}Defining Animations
Method
Description
Preparation
Animation Activation
Animation Ended
Applying Animations to Elements
Example: Animating a Repeater
Example: Animating Router Views
Using Animation Methods
addClass
addClassremoveClass
removeClassExamples
Animating a Repeater
Animating Router Views
Custom Animations
Creating a Custom Animator
Summary
Last updated
Was this helpful?