0.2.0 • Published 6 months ago

ngx-fast-marquee v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Ngx Fast Marquee

Build Status License

Description

Want to bring your website to life with dynamic, eye-catching marquees?

Look no further! The ✨ Ngx Fast Marquee ✨ is a lightweight component that can bring to life your Angular applications through fast and user-friendly marquee animations.

See the Demo section below for a live example!

🖥️ Demo

See Ngx Fast Marquee in action!

  • 📱 Web Demo
  • 🎮 StackBlitz

🛠️ Installation

Install the library using your favorite package manager:

  • npm
npm i ngx-fast-marquee
  • pnpm
pnpm i ngx-fast-marquee
  • yarn
yarn add ngx-fast-marquee
  • bun
bun add ngx-fast-marquee

Angular Compatibility

Angular VersionLibrary Version
>=120.2.0

🚀 Getting Started

Import the NgxFastMarqueeModule in your AppModule:

import { NgxFastMarqueeModule } from "ngx-fast-marquee";

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxFastMarqueeModule],
  bootstrap: [AppComponent],
})
export class AppModule {}

Use the ngx-fast-marquee component in your templates:

<ngx-fast-marquee>
  <div>Item 1</div>
  <div>Item 2</div>
  <div>Item 3</div>
  <div>Item 4</div>
  <div>Item 5</div>
</ngx-fast-marquee>

📚 Documentation

Marquee Inputs:

NameTypeDefaultDescription
speednumbermediumThe speed of the marquee in pixels per second. Also can be qualitative, fast, medium, slow.
directionstringleftThe direction of the marquee (left, right, up, down).
autoFillbooleantruetrue for auto filling the space.
useSystemReducedMotionbooleanfalsetrue for avoid animate the marquee when the system has reduced motion.
maskStartPercentagenumber0Start percentage of the mask. Suitable Range: 0 - 100, where 100 is the middle of the marquee.
maskEndPercentagenumber0End percentage of the mask. Suitable Range: 0 - 100, where 100 is the middle of the marquee.
maskPercentagenumber0Percentage of the mask. Suitable Range: 0 - 100, where 100 is the middle of the marquee (start to center and end to the center).
playbooleantruetrue for playing the marquee animation, otherwise the animation is paused.
pauseOnClickbooleanfalsetrue for pausing the marquee when the cursor is held down on the marquee.
pauseOnHoverbooleanfalsetrue for Pausing the marquee when the mouse is over it.

Marquee Outputs:

NameDescription
mountedEvent emitted when the marquee is in the view. Emitted only once.
updatedEvent emitted each time the marquee is updated.

📄 License

This project is licensed under the MIT License.

0.1.0

6 months ago

0.1.2

6 months ago

0.2.0

6 months ago

0.1.1

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.0.1

10 months ago