Gathering detailed insights and metrics for ngx-image-swiper
Gathering detailed insights and metrics for ngx-image-swiper
Gathering detailed insights and metrics for ngx-image-swiper
Gathering detailed insights and metrics for ngx-image-swiper
ngx-hammerjs-carousel
A photo/image carousel/slider/swiper for Angular that uses Hammer.JS
angular-responsive-carousel-ng16
Carousel for Angular. A simple solution for horizontal scrolling images with lazy loading.
ng-responsive-carousel
Carousel for Angular. A simple solution for horizontal scrolling images with lazy loading.
angular-responsive-carousel-ngx
Carousel for Angular. A simple solution for horizontal scrolling images with lazy loading.
A relatively simple component for displaying images in a container that can be navigated by mouse, touch and keyboard events with no dependencies, other than Angular of course.
npm install ngx-image-swiper
Typescript
Module System
Node Version
NPM Version
TypeScript (67.98%)
HTML (12.23%)
JavaScript (10.58%)
SCSS (9.21%)
Total Downloads
17,638
Last Day
2
Last Week
17
Last Month
129
Last Year
1,938
3 Stars
58 Commits
1 Forks
1 Watchers
2 Branches
1 Contributors
Updated on Mar 29, 2025
Minified
Minified + Gzipped
Latest Version
1.2.3
Package Id
ngx-image-swiper@1.2.3
Unpacked Size
188.30 kB
Size
36.88 kB
File Count
23
NPM Version
8.15.0
Node Version
16.17.0
Cumulative downloads
Total Downloads
Last Day
-33.3%
2
Compared to previous day
Last Week
-71.7%
17
Compared to previous week
Last Month
44.9%
129
Compared to previous month
Last Year
-52.1%
1,938
Compared to previous year
1
2
A relatively simple component for displaying images in a container that can be navigated by mouse, touch and keyboard events with no dependencies, other than Angular of course.
npm i ngx-image-swiper --save
Import NgImageSwiperModule
into the required module:
1import { NgImageSwiperModule } from 'ngx-image-swiper'; 2 3@NgModule({ 4 imports: [ 5 NgImageSwiperModule 6 ] 7})
In your component:
1import { Component } from '@angular/core'; 2import { NgxSwiperConfig } from 'ngx-image-swiper'; 3 4@Component({ 5 selector: 'app-root', 6 template: ` 7 <!-- put the component in a containing div --> 8 <div class="image-swiper"> 9 <ngx-image-swiper [config]="swiperConfig" [images]="images"></ngx-image-swiper> 10 </div> 11 `, 12 styles: [ 13 ` 14 // position must be relative 15 // width & height can be whatever you want 16 .image-swiper { 17 position: relative; 18 width: 600px; 19 height: 600px; 20 } 21 ` 22 ] 23}) 24export class AppComponent { 25 swiperConfig: NgxSwiperConfig = { 26 navigationPlacement: 'inside', 27 pagination: true, 28 paginationPlacement: 'outside' 29 }; 30 31 images = [ 32 'https://images.pexels.com/photos/2387869/pexels-photo-2387869.jpeg', 33 'https://images.pexels.com/photos/2395264/pexels-photo-2395264.jpeg', 34 'https://images.pexels.com/photos/2474014/pexels-photo-2474014.jpeg', 35 'https://images.pexels.com/photos/2440296/pexels-photo-2440296.jpeg', 36 'https://images.pexels.com/photos/2506269/pexels-photo-2506269.jpeg' 37 ]; 38}
The component comes with two inputs, config
and images
.
Here you can pass in the configuration options you want to change from their defaults (explained below).
The array of images to pass into the swiper component.
Ngx-Image-Swiper comes with the following configuration options:
1navigation?: boolean; 2navigationPlacement?: 'inside' | 'outside'; 3navigationLeftIcon?: string; 4navigationRightIcon?: string; 5pagination?: boolean; 6paginationPlacement?: 'inside' | 'outside'; 7imgBackgroundSize?: string; 8border?: boolean; 9borderRadius?: number; 10swipeThreshold?: number; 11loop?: boolean; 12keyboardNavigation?: boolean;
navigation
Enable/disable left/right button navigation (will only show there is more than 1 image).
true
navigationPlacement
Where the navigation buttons should appear, outside the images or inside over the images.
'outside'
'inside' | 'outside
navigationLeftIcon
& navigationRightIcon
Overwrite the icons used for the background image of the left/right navigation buttons.
pagination
Enable/disable the pagination dots (will only show there is more than 1 image).
'true'
paginationPlacement
Where the pagination dots should appear, outside the images or inside over the images.
'outside'
'inside' | 'outside'
imgBackgroundSize
Sets the background-size
CSS property on the images
'cover'
border
Enable/disable a border around the images
'true'
borderRadius
Sets the border radius on the images. border
must be true also.
4
swipeThreshold
Sets a distance threshold images must be dragged to go to the previous/next image otherwise it will remain on the current image.
'50'
loop
Enable/disable looping of the images.
'true'
keyboardNavigation
Enable/disable capturing of the left/right arrow keys on the users keyboard to navigation the images.
'true'
There is just out output event, imageClick
which is fired when the user clicks on any given image. It outputs the index number of the image.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
42 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More