Socket
Socket
Sign inDemoInstall

ng-image-slider

Package Overview
Dependencies
5
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng-image-slider

Image slider with image lightbox in angular 6.


Version published
Maintainers
1
Created

Readme

Source

Angular 6 Image Slider with Lightbox

An Angular 6 responsive image slider with image lightbox popup.

Features!

  • Responsive and captures swipes from phones and tablets
  • Compatible with Angular Universal
  • Image lightbox popup

Demo: https://ng-image-slider.herokuapp.com/

Installation

npm install ng-image-slider

Usage :

  • Import module in your app.module.ts:
import { NgImageSliderModule } from 'ng-image-slider';
  • and
imports: [
    NgImageSliderModule
  ]
  • Add component in your template file.
<ng-image-slider [images]="imageObject"></ng-image-slider>
  • imageObject format
imageObject: Array<object> = [{
        image: 'assets/img/slider/1.jpg',
        thumbImage: 'assets/img/slider/1_min.jpeg'
    }, {
        image: 'assets/img/slider/2.jpg',
        thumbImage: 'assets/img/slider/2_min.jpeg'
    }, {
        image: 'assets/img/slider/3.jpg',
        thumbImage: 'assets/img/slider/3_min.jpeg'
    }
];

Other options (optional) :

  • [infinite]: (type: boolean) (default: false): Slide image slider infinite if value is true.
  • [imagePopup]: (type: boolean) (default: true): Show original image in lightBox pop-up on slider image click if value is true.
  • [animationSpeed]: (type: number) (default: 1 second): By this user can set slider animation speed. Minimum value is 0.1 second and Maximum value is 5 second.
  • [slideImage]: (type: number) (default: 1): Slide image count on left/right arrow click.
  • [imageSize]: (type: number): Slider images width

License

As Angular itself, this module is released under the permissive MIT license.

Your contributions and suggestions are always welcome :)

Keywords

FAQs

Last updated on 25 Dec 2018

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