All Projects → ryuKKu- → angular-particle

ryuKKu- / angular-particle

Licence: other
Particle.js rewritted for Angular2/4

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to angular-particle

angular-ninja
The way to be an Angular ninja
Stars: ✭ 44 (-24.14%)
Mutual labels:  angular2, angular4
angular-rollbar-source-maps
Angular 2+ implementation to upload sourcemaps to Rollbar
Stars: ✭ 17 (-70.69%)
Mutual labels:  angular2, angular4
tcome-frontend
NodeJS&Angular4 BLOG
Stars: ✭ 49 (-15.52%)
Mutual labels:  angular2, angular4
ng4-stompjs-demo
A sample using Angular4, Angular CLI and @stom/ng2-stompjs
Stars: ✭ 20 (-65.52%)
Mutual labels:  angular2, angular4
odata-v4-ng
OData service for Angular
Stars: ✭ 27 (-53.45%)
Mutual labels:  angular2, angular4
ngx-widget-grid
Angular 2.x or in general ng-x module for dashboards
Stars: ✭ 65 (+12.07%)
Mutual labels:  angular2, angular4
Angular4-seed
Angular 4 Seed for Angular Forms
Stars: ✭ 37 (-36.21%)
Mutual labels:  angular2, angular4
ng2-acl
Role based permissions for Angular v2++
Stars: ✭ 15 (-74.14%)
Mutual labels:  angular2, angular4
ionic-uuchat
基于ionic3,angular4的实时聊天app,兼容web端。该项目只是前端部分,所有数据需要请求后端服务器,需要配套express-uuchat-api使用。
Stars: ✭ 14 (-75.86%)
Mutual labels:  angular2, angular4
nativescript-whatsapp-template
NativeScript Template Similar to WhatsApp
Stars: ✭ 61 (+5.17%)
Mutual labels:  angular2, angular4
kathisto
📦 Server-side rendering for Javascript based web-apps
Stars: ✭ 17 (-70.69%)
Mutual labels:  angular2, angular4
angular-landing-page
Beautiful Angular landing page with firebase, chat, poll, dynamic features/gallary, and nice animations/scrolling.
Stars: ✭ 43 (-25.86%)
Mutual labels:  angular2, angular4
laravel5Angular4
Laravel 5.4 & Angular 4.3.4
Stars: ✭ 37 (-36.21%)
Mutual labels:  angular2, angular4
gupack
基于gulp的前端构建工具
Stars: ✭ 13 (-77.59%)
Mutual labels:  angular2, angular4
paper-dashboard-angular
Angular version of the original Paper Dashboard.
Stars: ✭ 142 (+144.83%)
Mutual labels:  angular2, angular4
spring-websocket-angular6
Example for using Spring Websocket and Angular with Stomp Messaging
Stars: ✭ 18 (-68.97%)
Mutual labels:  angular2, angular4
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (-44.83%)
Mutual labels:  angular2, angular4
ng2-gridstack
A gridstack component for Angular2+
Stars: ✭ 12 (-79.31%)
Mutual labels:  angular2, angular4
ng-toggle
Bootstrap-styled Angular Toggle Component
Stars: ✭ 14 (-75.86%)
Mutual labels:  angular2, angular4
angular4-paystack
💵 An angular2+ module for paystack transactions
Stars: ✭ 51 (-12.07%)
Mutual labels:  angular2, angular4

angular-particle

Implementation of particle.js with TypeScript for Angular2/4. Inspired by react-particles-js

Installation

To install this library, run:

$ npm install angular-particle --save

How to use

// Import ParticlesModule
import { ParticlesModule } from 'angular-particle';

@NgModule({
  declarations: [
    ...
  ],
  imports: [
	...
    ParticlesModule
  ],
  providers: [],
  bootstrap: []
})
export class AppModule { }

And just use the component in your HTML

<particles [style]="style" [width]="width" [height]="height" [params]="params"></particles>

Parameters configuration can be found here. If you don't provide any parameters, default one are used.

Properties

Property Type Definition
params object The parameters for particle.js
style object The style of the canvas container
width number The width of the canvas element (in %)
height number The height of the canvas element (in %)

Example

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
    myStyle: object = {};
	myParams: object = {};
	width: number = 100;
	height: number = 100;

    ngOnInit() {
        this.myStyle = {
            'position': 'fixed',
            'width': '100%',
            'height': '100%',
            'z-index': -1,
            'top': 0,
            'left': 0,
            'right': 0,
            'bottom': 0,
        };

	this.myParams = {
            particles: {
                number: {
                    value: 200,
                },
                color: {
                    value: '#ff0000'
                },
                shape: {
                    type: 'triangle',
                },
	    }
	};
    }
}
<particles [params]="myParams" [style]="myStyle" [width]="width" [height]="height"></particles>

License

MIT © Luc Raymond

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].