Socket
Socket
Sign inDemoInstall

ng-marquee

Package Overview
Dependencies
5
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng-marquee

Angular 8+ CSS Marquee (Alternative To HTML Marquee Tag)


Version published
Weekly downloads
440
increased by3.29%
Maintainers
1
Install size
118 kB
Created
Weekly downloads
 

Readme

Source

ng-marquee

Angular 6+ Component For Marquee Text

Donate

( This Library Is Using Angular CLI's Library Generation Command )

How to:

Install npm

   npm install ng-marquee --save

Demo

Simple Example

Import Module
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 { }

Use Component
<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>

API

input properties

@Input() speed

speed property available for controlling speed of text movement

possible values
  • drowsy
  • slow
  • normal
  • fast
  • swift
  • hyper

Example

<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>

For Custom Speed

@Input() duration: string

Example

<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>

@Input() stopOnHover

stopOnHover property is usefull to stop the content movement on hover

possible values
  • true
  • false

Example

<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>

@Input() direction

direction property available for controlling direction of movement

possible values
  • left
  • right
  • alternate

Example

<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>

To Build the component

ng build ng-marquee

Any contributions are appreciated.

paypal

Inspired by https://github.com/muchweb/html5-marquee

Keywords

FAQs

Last updated on 17 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc