3.2.6 • Published 4 years ago

angular2-horizontal-slider v3.2.6

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Angular 2 Horizontal Slider

A very minimalistic fully responsive angular 2 horizontal slider.

Import this module to your angular app

import { HorizontalSliderModule } from "angular2-horizontal-slider";

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

Angular 2 Horizontal Slider

You can configure your slider to show different nummber of slides in different screen sizes. There are supported 4 screesizes xs, sm, md, lg. The default number of slides for these screensizes are:

this.XsVisibleSlides = 1;
this.SmVisibleSlides = 2;
this.MdVisibleSlides = 3;
this.LgVisibleSlides = 4;

These screen sizes media queries are the same as bootstrap 3. To configure different number slides just add these inputs to horizontal-slider element.

<horizontal-slider xs-visible-slides="1" sm-visible-slides="2" md-visible-slides="3" lg-visible-slides="3">
</horizontal-slider>

The navigation icons or text should be wrapped up inside hs-nav-left and hs-nav-right elements.

<horizontal-slider lg-visible-slides="3">
    <hs-nav-left>left</hs-nav-left>
    <hs-nav-right>right</hs-nav-right>
</horizontal-slider>

The horizontal slider should be wrapped with an element which his height is specified. Full example:

<horizontal-slider lg-visible-slides="3">
    <hs-slide>
        slide 1
    </hs-slide>
    <hs-slide>
        slide 2
    </hs-slide>
        ...
    <hs-nav-left>left</hs-nav-left>
    <hs-nav-right>right</hs-nav-right>
</horizontal-slider>
3.2.6

4 years ago

3.2.5

4 years ago

3.1.4

4 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

2.1.0

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago