2.1.0 • Published 4 years ago

ng-ticker v2.1.0

Weekly downloads
28
License
MIT
Repository
github
Last release
4 years ago

NG-Ticker

Build Status npm GitHub stars

html marquee implementation as angular component library.

Installation npm

$ npm install ng-ticker

Usage

Import the module

import { NgTickerModule } from 'ng-ticker';

@NgModule({
    imports: [ NgTickerModule ],
    ...
})
export class AppModule {}

Template

<ng-ticker></ng-ticker>

Options

NameTypeDefaultDescription
directionoptionalstring'left'Animation direction of content inside ng-ticker element
speedoptionalstring'10s'Speed of animation in direction in seconds. (speed need to be changed as width or content length on screen for better view)
stepsoptionalstring''Steps in animation transition to make vintage effect.
stopOnHoveroptionalBooleanfalseStop ticker on hover
playStateoptionalBooleantrueDefines play state of ticker content

Styling guide

There are several classes that help you to create your custom styles app.component.css

:host ::ng-deep .ticker-container > span {
    // any style properties.
}