The Animation library is used to perform animation effects on HTML elements by running sequence of frames.
The animate
method of Animation
library can be used to animate the HTML elements. This method can also take additional AnimationModel
. Refer the below code snippet to animate a multiple DOM element.
import {Animation} from '@syncfusion/ej2-base';
let animation: Animation = new Animation({ duration: 5000 });
animation.animate('#element1', { name: 'FadeOut' });
animation.animate('#element2', { name: 'ZoomOut' });