基于 AngularJS2+ 的动画插件 NgxAni

码农软件 · 软件分类 · AngularJS 扩展 · 2019-03-16 14:57:37

软件介绍

NgxAni 是一个基于 AngularJS2+ 的动画插件。

它非常简单和易于使用. 同时又具有很好的兼容性。

NgxAni 是一个 service class, 不依赖于任何类库. 你可以使用到任何的 Component 和 Directive 中.

安装和使用

快速入门使用 npm 安装和管理 NgxAni。

$ npm install ngxani --save

导入和使用 NgxAni 库。

//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
//click animate

//
private animation(dom: ElementRef) { this.ngxAni.to(dom, 1, { width: "200px", height: "100px" }); }

本文地址:https://codercto.com/soft/d/1479.html

The Art of Computer Programming, Volumes 1-3 Boxed Set

The Art of Computer Programming, Volumes 1-3 Boxed Set

Donald E. Knuth / Addison-Wesley Professional / 1998-10-15 / USD 199.99

This multivolume work is widely recognized as the definitive description of classical computer science. The first three volumes have for decades been an invaluable resource in programming theory and p......一起来看看 《The Art of Computer Programming, Volumes 1-3 Boxed Set》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器