Go to homepage

Projects /

Image Magnifier

Plugin to create a magnifying effect on an image.

View Demo

Dependencies

All components are compatible with CodyFrame, Tailwind CSS or any other CSS framework.

How To

The image magnifier component is used to magnify an image when the user hovers over it. 

You can add a data-scale attribute to the .img-mag element equal to the scale value you want to apply on hover (should be > 1). If no data attribute is passed, the image is scaled up to its natural dimension.

🌅 Demo photo by Jakob Owens on Unsplash.

Categories

Bug Report & Feedback

Component Github page ↗

Level up your CSS skills

Each month we email a 1-minute CSS tutorial to 20K developers

Awesome! We just sent you a confirmation link by email

Error - please try again or contact us

Your email address is already subscribed

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.