What is the zoom property in CSS?

The zoom property specifies the scale by which an object is magnified. It is a non-standard property and was introduced by Internet Explorer. The zoom property is only supported by some browsers including IE, Chrome, and Safari.

The illustration below explains what the zoom property does.

svg viewer

Parameter

zoom takes a single parameter (a whole number) that defines the percentage of magnification.

Initial image:

Check out the code below to understand how img-hover-zoom is implemented. The picture is magnified when the user hovers over the image with their mouse.

Check out the code below to understand how zoom is implemented.

New on Educative
Learn any Language for FREE all September 🎉
For the entire month of September, get unlimited access to our entire catalog of beginner coding resources.
🎁 G i v e a w a y
30 Days of Code
Complete Educative’s daily coding challenge every day in September, and win exciting Prizes.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved