Skip to content

Picture Carousel for Angular, developed with performance and efficiency in mind.

Notifications You must be signed in to change notification settings

quiui-dev/NgxPictureCarousel

Repository files navigation

NgxPictureCarousel

Easy to use picture carousel.

Version ^1.0.0

Support for Angular 15

Features

  • Virtual scrolling: do not render all images at once, saving memory and increasing performance.
  • Easy width and height control through properties

Usage

First, import NgxPictureCarousel module:

// file: app.module.ts

import {NgxPictureCarouselModule} from '@quiui/ngx-picture-container';

@NgModule({
    imports: [NgxPictureCarouselModule]
})
export class AppModule {}

Then, use the quiui-picture-carousel HTML tag:

<!--file: app.component.html -->

<!-- width and height defaults are 355.6px and 200px -->
<quiui-picture-carousel 
    [pictures]="pictures"
    width="355.6px"
    height="200px">
</quiui-picture-carousel>
// file: app.component.ts

@Component({
    //...
})
export class AppComponent {
    pictures = [
        'pictureUrl1',
        'pictureUrl2',
        'pictureUrl3'
    ]
}

About

Picture Carousel for Angular, developed with performance and efficiency in mind.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published