ng-marquee
Angular 6+ Component For Marquee Text
( This Library Is Using Angular CLI's Library Generation Command )
How to:
npm
Install npm install ng-marquee --save
Demo
Simple Example
Import Module
;;; ;
Use Component
Hello, World.... Find Me @ https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)
API
input properties
@Input() speed
speed
property available for controlling speed of text movement
possible values
- drowsy
- slow
- normal
- fast
- swift
- hyper
Example
Hello, World.... Find Me @ https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)
For Custom Speed
@Input() duration: string
Example
Hello, World.... Find Me @ https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)
@Input() stopOnHover
stopOnHover
property is usefull to stop the content movement on hover
possible values
- true
- false
Example
Hello, World.... Find Me @ https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)
@Input() direction
direction
property available for controlling direction of movement
possible values
- left
- right
- alternate
Example
Hello, World.... Find Me @ https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)
To Build the component
ng build ng-marquee