Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ngx-swinging-christmas-balls

UncoD40MIT1.0.5TypeScript support: included

Swing christmas balls on mouse hover (Angular)

christmas, balls, swing, swinging, wiggling, angular

readme

NgxSwingingChristmasBalls

Swing christmas balls on mouse hover on Angular

example.gif

Installation

Run

npm install ngx-swinging-christmas-balls

In app.module.ts

import { NgModule } from '@angular/core';
import { NgxSwingingChristmasBallsModule } from 'ngx-swinging-christmas-balls';

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

Use

<swinging-christmas-balls [count]="6" [scale]="-1"></swinging-christmas-balls>

Params

param description default
count Balls count 1
scale Ball size scale (float). If the value is less then 0, then each ball will have a random scale from 0.8 to 1.2 1