<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Animations on AngularTS</title><link>https://angular-wave.github.io/angular.ts/docs/animations/</link><description>Recent content in Animations on AngularTS</description><generator>Hugo</generator><language>en</language><atom:link href="https://angular-wave.github.io/angular.ts/docs/animations/index.xml" rel="self" type="application/rss+xml"/><item><title>CSS-based animations with the AngularTS CSS driver</title><link>https://angular-wave.github.io/angular.ts/docs/animations/css-animations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://angular-wave.github.io/angular.ts/docs/animations/css-animations/</guid><description>&lt;p>The CSS animation driver is the default mechanism for animating AngularTS structural directives. When a directive calls &lt;code>$animate.enter()&lt;/code>, &lt;code>$animate.leave()&lt;/code>, &lt;code>$animate.move()&lt;/code>, &lt;code>$animate.addClass()&lt;/code>, or &lt;code>$animate.removeClass()&lt;/code>, the CSS driver reads the element&amp;rsquo;s computed &lt;code>transitionDuration&lt;/code> and &lt;code>animationDuration&lt;/code> after applying the appropriate preparation classes. If it detects a non-zero duration, it manages the full lifecycle: blocking premature transitions, applying active classes after a &lt;code>requestAnimationFrame&lt;/code>, listening for &lt;code>transitionend&lt;/code> and &lt;code>animationend&lt;/code> events, and cleaning up all temporary classes when the animation finishes.&lt;/p></description></item><item><title>JavaScript-based animations with the AngularTS JS driver</title><link>https://angular-wave.github.io/angular.ts/docs/animations/js-animations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://angular-wave.github.io/angular.ts/docs/animations/js-animations/</guid><description>&lt;p>The JavaScript animation driver lets you write fully imperative animations in code. Instead of defining CSS classes, you register a factory function against a CSS class selector. When an element carrying that class goes through a structural or class-based animation event, the driver looks up and invokes the matching handler. This makes the JS driver the right choice when you need precise timing control, want to integrate an animation library such as the Web Animations API, or need to coordinate multiple elements that CSS transitions cannot express.&lt;/p></description></item><item><title>AngularTS animations: CSS and JavaScript drivers overview</title><link>https://angular-wave.github.io/angular.ts/docs/animations/overview/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://angular-wave.github.io/angular.ts/docs/animations/overview/</guid><description>&lt;p>AngularTS ships a first-class animation system built into the core framework. When you use structural directives such as &lt;code>ng-if&lt;/code>, &lt;code>ng-repeat&lt;/code>, &lt;code>ng-show&lt;/code>, &lt;code>ng-hide&lt;/code>, &lt;code>ng-include&lt;/code>, or &lt;code>ng-view&lt;/code>, the framework automatically coordinates with the &lt;code>$animate&lt;/code> service to apply CSS class hooks and invoke registered JavaScript animation handlers at the exact moment DOM changes occur — before and after insertion, removal, or class toggling.&lt;/p>
&lt;h2 id="how-animations-are-triggered">How animations are triggered&lt;a class="td-heading-self-link" href="#how-animations-are-triggered" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Animations in AngularTS are not triggered by calling an animation API directly. Instead, they are a side-effect of normal directive activity. When &lt;code>ng-if&lt;/code> removes an element, it calls &lt;code>$animate.leave()&lt;/code> internally. When &lt;code>ng-repeat&lt;/code> inserts a new item, it calls &lt;code>$animate.enter()&lt;/code>. This means you never need to change your directive usage — you only need to provide CSS rules or a registered JavaScript animation for the matching class names.&lt;/p></description></item></channel></rss>