How to Add Zoom Effect To Images?

Zoom in Effect

Create you own hover zoom effect

To add a Hover Zoom-In effect to a Divi image module, there are two steps to apply.

First of all, add an additional CSS class name to the module, for example:

zoom-in

 

Next, add the following code to the Custom CSS field under Dashboard / Theme Options / General Settings:

.zoom-in.et_pb_image:hover img,
.zoom-in .et_pb_image_wrap:hover img,
.zoom-in a:hover img {
    transform: scale(1.2); 
    transition: all 300ms 0s ease;
}

.zoom-in,
.zoom-in a {
    overflow: hidden;
}

.zoom-in.et_pb_image img,
.zoom-in .et_pb_image_wrap img,
.zoom-in a img {
    transition: all 1s 0s ease; 
}

 

 

Feel free to change the property values of the the animation code.

DOWNLOAD LAYOUT

Download Layout

Subscribe

Join Our Divi Mobi First Community

Get access to all our Divi Mobi First tips, layout and cutting-edge helpful tutorials that are easy to understand for small businesses, bloggers, and non-techy Divi website owners, direct to your inbox.

By Kerwin

Web Designer | Developer | Educator

Completely revolutionize the way you think about building Divi Websites.
Get Instant Access Now

Check Out These Related Posts

CSS Gallery Grid

CSS Gallery Grid

Introducing the Ultimate Responsive, Adaptive Gallery Layout for Divi: Powered by CSS Grid Elevate your online presence with our new DiviMobiFirst layout featuring a responsive, adaptive gallery powered by the robust CSS Grid. This layout is designed to showcase your...

read more

2 Comments

2 Comments

  1. Jefferey Nincehelsor

    Simple yet effective.

    Reply
  2. Zoritoler Imol

    Nice!!!!!!.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

View Template

You have Successfully Subscribed!