0.1.1 • Published 6 years ago

ng-typing v0.1.1

Weekly downloads
50
License
MIT
Repository
github
Last release
6 years ago

This is a simple type-on effect component for angular/ionic websites.

Demo page

https://viktorhajer.github.io/ng-typing/

Features

  • Easy to use
  • Reference animation speed can be defined
  • With the Deviation parameter the speed can be randomized
  • Typo can be turn on/off and in case of type the probability also can be changed (in percent)

Installation Instructions and Usage

npm install ng-typing --save

Add TypingModule to your module's imports

In component HTML

    <typing [message]="'Hello World!'" [referenceSpeed]="30" [typo]="false"></typing>

Input parameters

SignatureShort Description
messageThe message which should be animated.
referenceSpeedThe reference speed in millisecond (the rendering time for a letter). It is 60ms by default.
speedDeviationThe deviation amount of the speed. It should be lower then the reference speed. 30ms by default.
typoField to enable the typing errors.
typoProbabilityThe probability of the typo in percent. It is 5% by default (maximum value is 80%).

Output emmiters

SignatureShort Description
onCompletedFired when the animation is completed.

Contribute

See CONTRIBUTING.md

License

MIT © Viktor Hajer