High-resolution nature photo with a circular SVG magnifying glass overlay zooming into details, demonstrating the JavaScript hover effect

Magnifying Glass Image Zoomer

This Magnifying Glass Image Zoomer simulates a physical lens moving over a surface, making it ideal for product detail pages or photography portfolios. Unlike simple CSS transforms, this component uses JavaScript to calculate precise cursor coordinates and synchronizes a zoomed-in background image with a floating SVG overlay.

Technologies:
JavaScript Pug Stylus
Difficulty:Intermediate
Browser Support (as of Jan 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13+
Features:
Pointer TrackingWheel ZoomingEdge Detection
Code by: Jhey Tompkins Jhey Tompkins
License: MIT
Carousel with Drag and Wheel Input

Carousel with Drag and Wheel Input

This purely vanilla JS/CSS image carousel delivers superior performance with native drag-and-wheel input support, dynamically controlling the 3D-like layout using calculated CSS Custom Properties for position and depth.