Socket
Socket
Sign inDemoInstall

@momsfriendlydevco/animate

Package Overview
Dependencies
2
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @momsfriendlydevco/animate

Stock animations for Angular


Version published
Maintainers
3
Install size
2.33 MB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 19 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc