0.0.5 • Published 8 years ago

@momsfriendlydevco/animate v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

mfdc-animate

Stock animations for Angular.

Demo.

Installation

  1. Use NPM to grab the repo

    npm install mfdc-animations

  2. Add the main CSS library somewhere in your HTML:

A demo is also available. To use this follow the instructions in the demo directory.

Usage

This library is intended to be separated into atomic CSS components. To use combine one optional primary effect, one optional reflow and any number of modifiers.

TypeClassDescription
BaseanimateThe base animation class. This must be present on any item that will animate
Primary Effectanimate-fadeApply a simple fade in / out effect
animate-fly-DIRECTIONApply a fade-in and fly-in effect from the specified direction. Direction can be: up, down, left, right
animate-shakeShake the element as it appears / disappears
Reflowanimate-reflow-widthResize the elements width while animating
animate-reflow-heightResize the elements height while animating. This is ideal for vertical lists or use within tables
animate-reflow-scaleScale the entire element while animating. This class is recommended for reflow as it is GPU accelerated
Modifier / Delayanimate-delay-TIMEModify the animation start time. Time can be: 0ms (default), 10ms, 20ms, 30ms, 40ms, 50ms, 100ms, 200ms, 500ms, 1s, 2s, 5s, 10s, 20s, 30s
Modifier / Durationanimate-duration-TIMEModify the animation time. Time can be: 10ms, 20ms, 30ms, 40ms, 50ms, 100ms, 200ms, 500ms (default), 1s, 2s, 5s, 10s, 20s, 30s
Modifier / Easinganimate-easing-EASEModify the animation easing. Ease can be: linear, ease, ease-in, ease-out (default), ease-in-out
Modifier / Repeatanimate-repeat-REPEATModify how many times the animation will loop. Repeat can be: loop, 1 (default), 2, 3, 4, 5

Common Gotchas

  • ng-repeat items need to have a track by or an entire copy of the DOM tree is copied after the current node. Basically if your list appears to not remove items from the middle - you're missing a track by clause.
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago