Hover to Expand Image Effect in 2 Simple Steps | Showit Code Snippet

Enjoying these free resources?

Your support helps keep this site running and growing!

Recently, Showit introduced an exciting update that allows users to add custom class names to elements. This opens up endless customizations and styling possibilities.

Hover to expand image is a subtle yet effective animation that can enhance the visual appeal of your site, especially for photography portfolios showcasing families and babies.

This tutorial will guide you through the process of implementing the hover to expand image effect.

Step-by-Step Guide:

Step 1: Add the following code to the Custom CSS box under Advanced Settings tab of your page in the Showit builder:

.hover-to-expand {
display: inline-block;
transition: transform 0.8s ease-in-out !important;
}

.hover-to-expand:hover {
transform: scale(1.1) !important;
}

Step 2: Add the classname “hover-to-expand” (notice that it is without the period ‘.’ in the front. Showit adds that for you.) to all the images on your page that you want to expand on hovering.

How to Add a Custom Class Name to Your Showit Elements:

Click on the image. You will see a new “Advanced” tab on your right hand side settings panel.

Under this Advanced tab, you will see a CSS Classes option

Click on the Add button, and enter the class name here, and click on confirm.

Changing animation speed and size of the images on hovering:

Change the speed of animation in this line. The default value is 0.8 seconds.

transition: transform 0.8s ease-in-out !important;

Change the scale of the image in this line. The default value is 1.1, which means the image grows to 1.1x times its current size.

transform: scale(1.1) !important;

Play around with the values to see what fits your needs the best!

If you are facing any issues with implementation, We also have a video tutorial here!

And we’re done!

By following this simple tutorial, you can easily add a hover-to-expand image effect to your Showit website, enhancing its visual appeal and providing a more interactive experience for your visitors. This subtle animation is particularly effective for photography portfolios, allowing your images to stand out and captivate your audience.

With the ability to customize the animation speed and scale, you can tailor the effect to perfectly suit your design preferences. Don’t forget to experiment with different values to find the ideal look for your site.

If you found this guide helpful, be sure to follow my Instagram page @doitwithshowit for more tips and tricks on maximizing your Showit experience. Happy designing!

Enjoying these free resources?

Your support helps keep this site running and growing!

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

YOU MAY ALSO LIKE

Add a Confetti effect to your Showit Page

Looking to add a fun, celebratory touch to your Showit website? A confetti effect is a great way to delight your visitors—whether you’re announcing a sale, celebrating a milestone, or a thank you page after form submissions. The best part? You can do it in just a few...

Grow or Shrink a Logo on Scroll

Creating a dynamic logo that responds to user scrolling is a popular web design technique that enhances user experience and adds visual polish to websites. This effect typically involves shrinking a large logo in the header as users scroll down, making more room for...

How to Build a Scalable Showit FAQ (with a Simple Code Snippet)

If you’re building a website on Showit, you know how important a well-organized FAQ section can be for your visitors. But as your list of questions grows, managing a Showit FAQ can quickly become time-consuming—especially if you want to keep things easy to update and...