1.0.8 • Published 4 years ago

@flk/swiper v1.0.8

Weekly downloads
9
License
ISC
Repository
github
Last release
4 years ago

Slider

A simple slideshow for Falak Js.

Installation

flk i @flk/slider

OR

npm install @flk/slider

OR

yarn add @flk/slider

Usage

home-page.component.html

<flk-slider [slides]=[this.slides]></flk-slider>

Where this.slides is an array of objects, each object contains:

{
    "image": "image-path",
    "alt": "Add Image Text Alt",
    "link": "Add link for image"
}

Options

All Of the slider options relies under the slider key in the config.

It can also be passed to the component directly.

KeyDefaultAvailable OptionsDescription
looptruetrue / falseDisplay slides infinity.
autoPlaytruetrue / falseWill auto play next slide after x amount of delay option.
delay5000NumberWait for time before playing next slide, works only when autoPlay enabled, Value in milliseconds.
pauseOnHovertruetrue / falsePause auto play when hovering on the slider.
animationfadefadeSliding animation.
centeredtruetrue / falseIf set to true, slides will be centered in the slider block.
heightautoany css unit valueSet slider height.
bulletstruetrue / falseDisplay bullets below the slider.
navigationtruetrue / falseEnable Navigation buttons prev and next.
navigationIcon.prevangle-leftany Fontawesome iconPrevious Button icon.
navigationIcon.nextangle-rightany Fontawesome iconNext Button icon.
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago