ngx-media-slider
TypeScript icon, indicating that this package has built-in type declarations

0.1.20 • Public • Published

Logo

NGX media slider (multi purpose)

This library was generated with Angular CLI version 8.0.3.

Install

This is angular module available through the npm registry.

$ npm install ngx-media-slider

Using

Example

imports

...
import { NgxMediaSliderModule } from 'ngx-media-slider';
...
...
imports: [
    NgxMediaSliderModule
],
...

Use

use in component

<lib-ngx-media-slider 
    [images]="images" 
    [width]="80" 
    [height]="50"
    [interval]="3000"
    [time]="0.6"
    [controlers]="true"
    [dots]="true"
    >
</lib-ngx-media-slider>

Width is int in range 0 - 100 (optional)

Height is int in range 0 - 100 (optional)

Interval is int in Millisecond

time is int in second

Controlers is boolean (optional)

Dots is boolean (optional)

Images is Array of Images and Videos given like example:

[
    {
        "type": "img",
        "src": "assets/img/example.jpg"
    },
    {
        "type": "video",
        "src": "assets/video/example.mp4"
    }
]

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-media-slider

Weekly Downloads

0

Version

0.1.20

License

none

Unpacked Size

329 kB

Total Files

26

Last publish

Collaborators

  • lashaloladze
  • lukakantaria