@momsfriendlydevco/animate
Stock animations for Angular
Last updated 4 years ago by hash-bang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @momsfriendlydevco/animate 
SYNC missed versions from official npm registry.

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:

    <link href="/node_modules/mfdc-animations/mfdc-animation.css" rel="stylesheet" type="text/css"/>

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.

Type Class Description
Base animate The base animation class. This must be present on any item that will animate
Primary Effect animate-fade Apply a simple fade in / out effect
animate-fly-DIRECTION Apply a fade-in and fly-in effect from the specified direction. Direction can be: up, down, left, right
animate-shake Shake the element as it appears / disappears
Reflow animate-reflow-width Resize the elements width while animating
animate-reflow-height Resize the elements height while animating. This is ideal for vertical lists or use within tables
animate-reflow-scale Scale the entire element while animating. This class is recommended for reflow as it is GPU accelerated
Modifier / Delay animate-delay-TIME Modify the animation start time. Time can be: 0ms (default), 10ms, 20ms, 30ms, 40ms, 50ms, 100ms, 200ms, 500ms, 1s, 2s, 5s, 10s, 20s, 30s
Modifier / Duration animate-duration-TIME Modify the animation time. Time can be: 10ms, 20ms, 30ms, 40ms, 50ms, 100ms, 200ms, 500ms (default), 1s, 2s, 5s, 10s, 20s, 30s
Modifier / Easing animate-easing-EASE Modify the animation easing. Ease can be: linear, ease, ease-in, ease-out (default), ease-in-out
Modifier / Repeat animate-repeat-REPEAT Modify 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.

Current Tags

  • 0.0.5                                ...           latest (4 years ago)

6 Versions

  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |