material-animation
v1.0.2
Published
animation library for material-design-lite and angular.js
Maintainers
Readme
material-animation
Angular animation library
See a demo - (http://codepen.io/davidbielik/pen/YpGJoy)
- Requires Angular
- MDL is optional
- Animates all child elements of the
material-animation material-animation__slide-in-rightclass
Getting Started
Install this module
npm install material-animation --saveAdd this module to your HTML page
<script src="node_modules/material-animation/material-animation.js"></script>
<link href="node_modules/material-animation/material-animation.css" rel="stylesheet">Add the module into your angular app
angular.module('app', ['material-animation']);Call the animate function to animate a list of items (or ng-repeat)
angular.module('app')
.controller('AppController', function($scope, materialAnimation, $timeout){
$scope.items = ['item1','item2','item3','item4','item5','item6','item7','item8','item9'];
$timeout(materialAnimation.slideIn);
});<div ng-controller="AppController">
<ul class="material-animation material-animation__slide-in-right">
<li ng-repeat="item in item">{{item}}</li>
</ul>
</div>