Skip to content

Instantly share code, notes, and snippets.

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 10:30
AngularJS $animate.enter and $animate.leave

##AngularJS $animate.enter and $animate.leave

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 10:12
AngularJS custom directives animations

##AngularJS custom directives animations

$animate method's signatures:

$animate.addClass(element, className); $animate.removeClass(element, className);

Both functions receive the element parameter that will have a class added or removed and the className class that will be used and return a promise that is resolved once the animation has completed itself or has been cancelled.

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 09:55
AngularJS ngIf with CSS Animation and fallback for JavaScript animation

##AngularJS ngIf with CSS Animation and fallback for JavaScript animation

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 09:37
AngularJS ngRepeat JavaScript animation

##AngularJS ngRepeat JavaScript animation

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 09:13
AngularJS ngIf JavaScript animation

##AngularJS ngIf JavaScript animation

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 08:39
AngularJS ngHide JavaScript animation

##AngularJS ngHide JavaScript animation

@anonymoussc
anonymoussc / README.md
Last active August 29, 2015 14:26
AngularJS ngClass JavaScript Animation

##AngularJS ngClass JavaScript Animation

When we click on the Toggle ngClass animation button, animationClass is added to the element with the firstJsAnimation class, so the ngAnimate module will check if there is an addClass animation callback function for elements with the firstJsAnimation class. If there is any, it will trigger the animation by calling the callback function.

AngularJS JavaScript animation works on the principle of callback functions. Each callback function has at least two parameters: element , which is the DOM element to

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 04:15
Pure CSS Parallax

##Pure CSS Parallax

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 04:04
AngularJS ngInclude animation

##AngularJS ngInclude animation

@anonymoussc
anonymoussc / README.md
Created August 7, 2015 03:53
AngularJS ngSwitch animation

##AngularJS ngSwitch animation