0.0.3 • Published 2 years ago

@suarsan/ngx-flipboardtext v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

NgxFlipboardtext

npm version

A full featured and customizable flipboard text component for Angular.

alt text

Demo

Try full demo at ngx-flipboardtext

Usage

Installation

Install via npm

npm install @suarsan/ngx-flipboardtext

Usage

Import NgxFlipboardtextModule in your app.module.ts

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

import { NgxFlipboardtextModule } from '@suarsan/ngx-flipboardtext';

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

Documentation

Inputs

InputTypeDefaultRequiredDescription
keysArray<string>-trueArray of key string to show
cycleDurationnumber15000falseAnimations duration in ms
fontSizestring'2rem'falseFont size
breakRationumber0.75falseTime relation between show text and flip text
backgroundColorstring'#2cc4d2'falseBackground color
textColorstring'#ffffff'falseText color

Example

<ngx-flipboardtext
    [keys]="['hello', 'I am', 'John DOE']"
    [cycleDuration]="5000"
    [fontSize]="'5rem'"
    [breakRatio]="0.85"
    [backgroundColor]="'#FF0000'" 
    [textColor]="'#00FF00'"
></ngx-flipboardtext>

Creator

Javier Suárez Sánchez


Keywords

angular ngx javascript flipboardtext flip board text flipboard animation