Home

Awesome

Ngx Word-Morph Component

@omnedia/ngx-word-morph is an Angular library designed to facilitate word morphing animations within Angular applications.

Features

Installation

Install the library using npm:

npm install @omnedia/ngx-word-morph

Usage

Import the NgxWordMorphComponent in your Angular module:

import { NgxWordMorphComponent } from '@omnedia/ngx-word-morph';

@Component({
  ...
  imports: [
    ...
    NgxWordMorphComponent,
  ],
  ...
})

Use the component in your template:

<om-word-morph [words]="['Hello', 'World']" styleClass="custom-class"></om-word-morph>

API

<om-word-morph
  [words]="words"
  [morphDuration]="morphDuration"
  [morphDelay]="morphDelay"
  styleClass="your-custom-class"
></om-word-morph>

Starts the word morphing effect.

Styling

If you want to style the text, do it globally via the styleClass. <br> To change the font size make sure to change the --om-word-morph-font-size variable instead of directly changing the size.

Contributing

Contributions are welcome. Please submit a pull request or open an issue to discuss your ideas.

License

This project is licensed under the MIT License.