Angular 6+ Component For Marquee Text
( This Library Is Using Angular CLI's Library Generation Command )
Install npm
npm install ng-marquee --save
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgMarqueeModule } from 'ng-marquee';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgMarqueeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<ng-marquee>
<mark>Hello, World.... Find Me @ <a href="https://www.linkedin.com/in/shivarajnaidu/" target="__blank"> https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)</a></mark>
</ng-marquee>
speed
property available for controlling speed of text movement
- drowsy
- slow
- normal
- fast
- swift
- hyper
<ng-marquee speed="drowsy">
<mark>Hello, World.... Find Me @ <a href="https://www.linkedin.com/in/shivarajnaidu/" target="__blank"> https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)</a></mark>
</ng-marquee>
<ng-marquee duration="90s">
<mark>Hello, World.... Find Me @ <a href="https://www.linkedin.com/in/shivarajnaidu/" target="__blank"> https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)</a></mark>
</ng-marquee>
stopOnHover
property is usefull to stop the content movement on hover
- true
- false
<ng-marquee [stopOnHover]="true">
<mark>Hello, World.... Find Me @ <a href="https://www.linkedin.com/in/shivarajnaidu/" target="__blank">
https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)</a></mark>
</ng-marquee>
direction
property available for controlling direction of movement
- left
- right
- alternate
<ng-marquee direction="right">
<mark>Hello, World.... Find Me @ <a href="https://www.linkedin.com/in/shivarajnaidu/" target="__blank"> https://www.linkedin.com/in/shivarajnaidu/ (Yuvaraj)</a></mark>
</ng-marquee>
ng build ng-marquee