Back to AIX Effects LibraryQA Verified · Synced
Interactive Components/<ImageLensMagnifier />·Intermediate

Optical Lens Magnifier

Unlike single-image zoom scripts, this component magnifies arbitrary React nodes, SVG engineering schematics, and product photography cleanly.

Next.js 16+React 19TypeScriptTailwind CSSZero External Deps
Move pointer across blueprint
OPTICAL SPECIMEN · VECTOR GRIDREV 3.0
SUBPIXEL PRECISION
deltaX: 0.004px · bezier(0.22, 1, 0.36, 1) · matrix3d
Ø 136px
SCALE 2.2×CSS TRANSFORM LOUPE

Sweep pointer over blueprint frame or toggle loupe silhouette shape.

Installation

Zero External Dependencies

Zero external npm dependencies.

Usage

import { ImageLensMagnifier } from '@/components/effects/library/interactive/ImageLensMagnifier'

<ImageLensMagnifier
  zoomFactor={2.3}
  lensSize={140}
  lensShape="circle"
  className="h-72 rounded-2xl border"
>
  <img src="/mockup.png" alt="Product detail" className="w-full h-full object-cover" />
</ImageLensMagnifier>

Props & API Reference

4 props
PropTypeDefaultDescriptionEffect
zoomFactornumber2.2Optical zoom scale factor applied inside lens.Scales magnification multiplier.
lensSizenumber136Magnifier lens aperture width/height in pixels.Adjusts loupe viewport size.
lensShape'circle' | 'rounded''circle'Circular glass loupe or rounded-square inspector.Changes aperture boundary mask.
accentColorstring'#536dfe'Ring border and crosshair HUD tint.Styles lens ring & crosshair.

More in Interactive Components

View All 36 →
R=145px · k=0.14Approach & Click

Magnetic Button

Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.

View Details
Move pointer or tap cells to illuminate hairline grid
01
Pointer Tracking
02
Masked Grid
03
Touch Ready
04
Zero Packages
Beam 280px · Grid 28px

Cursor Spotlight

Radial light container uncovering masked hairline coordinates cleanly under pointer.

View Details
Select tabs across uneven label widths
active: overview · stiffness 400

Fluid Navigation Indicator

Dynamic width spring capsule gliding smoothly between navigation tabs via scoped layoutId.

View Details