Image Zoom

An effect that allows you to zoom in on an image on hover.

Made by imskyleen
Edit on GitHub

Installation

Usage

<ImageZoom>
  <Image src="..." />
</ImageZoom>

API Reference

ImageZoom

PropTypeDefault
zoomScale?
number
3
transition?
Transition
{ type: 'spring', stiffness: 200, damping: 28 }
style?
React.CSSProperties
-
zoomOnClick?
boolean
true
zoomOnHover?
boolean
true
disabled?
boolean
false
width?
React.CSSProperties['width']
100%
height?
React.CSSProperties['height']
100%
children?
React.ReactElement
-
...props?
React.ComponentProps<"div">
-

Image

PropTypeDefault
objectFit?
React.CSSProperties['objectFit']
cover
as?
React.ElementType
img

Credits

  • Inspired by Jurre Hover Zoom Framer component.

Built by Skyleen. The source code is available on GitHub.

Last updated: 10/28/2025