2.0.0 • Published 1 year ago

ngx-magnifier v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

NgxMagnifier

NgxMagnifier is a seamless zoom and magnify images on your website. Ideal for product showcases, galleries, and detailed image inspections, this library offers customizable options to enhance user experience with minimal configuration.

Versions

Angularng-select
>=13.0.0 <14.0.0v2.x
>=12.0.0 <13.0.0v1.x

Getting started

Step 1: Install ngx-magnifier:

NPM

npm install ngx-magnifier

Step 2: Import the NgxMagnifierModule module:

import { NgxMagnifierModule } from 'ngx-magnifier';

@NgModule({
  declarations: [AppComponent],
  imports: [NgxMagnifierModule],
  bootstrap: [AppComponent]
})
export class AppModule {}

In template use ngx-magnifier component with your options

<!-- ngx-magnifier -->
<ngx-magnifier [magWidth]="170" [magHeight]="170" [magPos]="3" [magZoom]="3"
imgSrc='img path' imgHeight='600' imgWidth='700'></ngx-magnifier>

Config

Inputs

InputTypeDefaultRequiredDescription
magWidthNumber0yesIt allows to increase the width of the magnifier lens
magHeightNumber0yesIt allows to increase the height of the magnifier lens
magPosNumber0noThis allows positioning of the magnified image
magZoomNumber0yesThis allows you to zoom in or out of the zoomed image
imgSrcstring0yesImage path
imgHeightstring0yesIt allows you to increase the height of the image in values or percentages.
imgWidthstring0yesIt allows you to increase the width of the image in values or percentages.
2.0.0

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.0.2

1 year ago

0.0.0-watch

1 year ago