Socket
Socket
Sign inDemoInstall

ngxani

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngxani

A Simple Animation Plugin for Angular.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

NgxAni

A Simple Animation Plugin for Angular.

Overview

NgxAni is an animation plugin for AngularJS2+.

It is very simple and convenient to use. At the same time it has very good compatibility.

NgxAni is a service class, do not rely on any file. You can use it in any Component or Directive.

Install and Usage

Quick Start Install and manage NgxAni with npm.

$ npm install ngxani --save

import and use the NgxAni library.

//1. import module
import { NgxAniModule } from 'ngxani';

//2. set ngModule
@NgModule({
    imports: [BrowserModule, NgxAniModule]
    ... ...

//3. import service
import { NgxAni } from 'ngxani';

//4. constructor
constructor(private ngxAni: NgxAni) { }

//5. use
//<button (click)="animation(rect)">click animate</button>
//<div class="rect" #rect></div>
private animation(dom: ElementRef) {
  this.ngxAni.to(dom, 1, {
      width: "200px",
      height: "100px"
  });
}

Examples

npm start

view on http://localhost:4200/

Future

NgxAni is not strongly dependent on angular2 and typescript.
The next step I want to bring it to Reacthttps://facebook.github.io/react/, so stay tuned!

License

The BSD License.

Keywords

FAQs

Last updated on 11 May 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