Easy to use picture carousel.
Support for Angular 15
- Virtual scrolling: do not render all images at once, saving memory and increasing performance.
- Easy width and height control through properties
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'
]
}