Skip to content

kappys1/ngx-carousel

Repository files navigation

ngxCarousel

An lightweight, touchable and responsive library to create a carousel for angular

No dependencies, no more HAMMER.

npm version Angular2+ Angular2+ licence

Demo

demos available here

Install

You can install the package from our npm package

 npm install --save ngx-carousel-lib

Usage

First tou need to provide the CarouselModule to your desired Module

import {CarouselModule} from "ngx-carousel-lib";

// In your App's module or Custom Module:
@NgModule({
    imports: [
       CarouselModule
    ] 
})

Now, you can use CarouselModule as follow:

<carousel-component >
    <div class="item-carousel">a</div>
    <div class="item-carousel">
        <div class="b">
            <img src="https://www.losminionsaldia.com/images/mas-minions/minion.png" />
        </div>
    </div>
    <div class="item-carousel">c</div>
    <div class="item-carousel">d</div>
</carousel-component>

All slides of carousel must have .item-carousel

API Documentation

you can see here or in web

Author

Alex Marcos Gutierrez

License

MIT