Socket
Socket
Sign inDemoInstall

ngx-slides

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-slides

ngx-slides is a lightweight slideshow component for Anguar 4 applications and fully configurable.


Version published
Weekly downloads
8
decreased by-46.67%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-slides

GitHub license npm Build Status Codecov branch npm GitHub top language GitHub code size in bytes GitHub issues GitHub closed issues GitHub contributors

ngx-slides is a lightweight slideshow component for Anguar 4 applications and fully configurable.

Features

  • Autoplay
  • Navigation buttons
  • Customizable delay time, height, widths

Examples

Installation

  • npm install ngx-slides

Using with webpack and tsc builds/ angular-cli builds

  • import NgxSlidesModule into your app.module;
import { NgxSlidesModule } from 'ngx-slides'
  • add NgxSlidesModule to the imports of your NgModule:
@NgModule({
  imports: [
    ...,
    NgxSlidesModule
  ],
  ...
})
class YourModule { ... }
  • use <ngx-slides></ngx-slides> in your templates to add pagination in your view like below
<ngx-slides [slideImages]="slides" [config]="config"></ngx-slides>

Config

Input

  • slideImages: any[] - An array of objects that contains the image url and captions.
  • config: {} - Object with configurationn values for the slides with below format.
slideImages = [
    {
      image: '/assets/images/image3.jpeg', //path to image
      title: 'Image1' //caption for image
    }
]
config = {
        width:"800px", //width of slides defaults to 800px
        height:"300px" //height of slides defaults to 300px
        autoPlay:false //autoplay required or not defaults to false
        delay: 3000 // delay for autoplay
      }

Help Improve

Found a bug or an issue with this? Open a new issue here on GitHub.

Contributing to this project

Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.

Keywords

FAQs

Package last updated on 31 Mar 2018

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc