ngx-particlesjs
v2.0.1
Published
[![npm](https://img.shields.io/npm/v/ngx-particlesjs.svg)](https://www.npmjs.com/package/ngx-particlesjs) [![npm](https://img.shields.io/npm/dm/ngx-particlesjs.svg)](https://www.npmjs.com/package/ngx-particlesjs) [![TypeScript](https://img.shields.io/badg
Downloads
66
Readme
ngx-particles.js
A lightweight particle backgrounds plugin for Angular
Install
# npm install ngx-particlesjs --save
Usually
used on templates
<ngx-particle [total]="total" [default_height]="300" [default_width]="300" [args]="args"></ngx-particle>
Defining components
export class AppComponent {
total = 150;
args = {
speed: 'fast',
size: 1.2
}
}
@Input Attributes
total
particle number, default150
default_width
default stage widthdefault_height
default stage heightargs
(not necessary)speed
particle motion speed, defaultnormal
, you can setfast
normal
slow
, can also be customized[2,2]
, the higher the value, the slower the motionsize
particle size