npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-dynamic-carousel

v1.0.0

Published

The ngx-dynamic-carousel library is a carousel component built using Angular.

Readme

ngx-dynamic-carousel

The ngx-dynamic-carousel library is a carousel component built using Angular.

Installation

To install this library, run:

$ npm i ngx-dynamic-carousel --save

Using this library

From your Angular AppModule:

import { NgxDynamicCarouselModule } from "ngx-dynamic-carousel";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
// import { NoopAnimationsModule }  "@angular/platform-browser/animations";
// BrowserAnimationsModule or NoopAnimationsModule is mandatory.

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

Once the library is imported, you can use its component in your Angular application:

<ngx-dynamic-carousel
  [mainContentTemplate]="mainContentTemplate"
  [leftArrowTemplate]="leftArrowTemplate" 
  [rightArrowtemplate]="rightArrowTemplate" 
  [items]="items" 
  [visibleCount]="1"
  [animationState]="'fade'"
  >
  
  <!-- main content template starts here -->
  <ng-template let-item #mainContentTemplate>
    <div class="p-4 border border-gray-500">
      <img [src]="item.imageUrl">
      <span class="font-semibold">
        {{ item.name }}
      </span>
    </div>
  </ng-template>
  <!-- main content template ends here -->

<!-- Left arrow template starts -->
  <ng-template #leftArrowTemplate>Left</ng-template>
<!-- Left arrow template ends -->

<!-- Right arrow template starts -->
  <ng-template #rightArrowTemplate>Right</ng-template>
  <!-- Right arrow template ends -->

</ngx-dynamic-carousel>

Available options

| Option | Default value | Description | Example value | | :-----------------: | :-----------: | :------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------ | | mainContentTemplate | none | (Required) The main content template defines the template of the carousel. | Refer #mainContentTemplate in the above example | | items | none | It is an array of objects that should contain all the values that is to be binded in the template | In the example above, the imageUrl and name are keys that are passed via items | | visibleCount | 1 | The number of mainContentTemplate that must be appeared in the carousel at a time | 4 (Four images will be dislpayed at one stretch) | | leftArrowTemplate | <- | It is a template to define the left navigation symbol of the carousel | Left | | rightArrowTemplate | -> | It is a template to define the right navigation symbol of the carousel | Right | | animationState | fade | The animationState can take the values fade, scale or custom. If the custom is set, then the user can customize the animation. | In the above example it is set as fade |

Custom Animation

To give custom animation, set animationState property to custom. Now you can pass the animation trigger with the mainContentTemplate.

License

MIT © Tibin && Fenn