Found what you have been looking for?

Search
Generic filters
Exact matches only
Filter by Categories
Customization
Domains
Lightroom Plugin
Tools and Tips

Creating a cool thumbnail zoom hover effect

In this short tutorial I am going to show you how to create a smooth as a butter zoom hover effect, which you can use on your thumbnails.  You can see this effect on my SmugMug website – here.  Just open my homepage and scroll down until you see the thumbnails – hover your mouse over them to see the effect.

This effect works best on THUMBNAILCOLLAGE PORTRAITSMUGMUG and JOURNALgallery styles.  Although this effect works on COLLAGE LANDSCAPE gallery styles – I recommend to remove the drop shadow effect from the code – otherwise the shadow will look odd.

This effect will also work on thumbnails in MULTIPLE PHOTOS content block.

The CSS code

If you would like to apply this code to the whole site on your SmugMug account { like I did on my website }, just log in to your SmugMug account → click CUSTOMIZE on the right side → CONTENT AND DESIGN → on the right side select ENTIRE SITE → add a CSS content block to it and then add this code to it:

/*Cool Zoom hover effect from portal.photom.me*/
.sm-user-ui .sm-tile-content:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.20);
}
.sm-user-ui .sm-tile-content {
    -webkit-transition: -webkit-transform .5s ease;
    transition: -webkit-transform .5s ease;
    transition: transform .5s ease;
    transition: transform .5s ease, -webkit-transform .5s ease;
}

hover, thumbnail, zoom


Tomasz Nowicki

My name is Tomasz Nowicki and I am a PHOTOGRAPHER and WEB DESIGNER based in the UK. Few years ago I have created my first website using SmugMug - a powerful platform for any type of photographer. I fell in love with it and from day one I have started exploring the possibilities of customizing my website. PHOTOM Portal is a my personal SmugMug knowledge base website where you can find some tips and tricks on how to use and get the most out of your SmugMug website.

Comments (8)

  • has smugmug changed anything. just opened an account and this code doesn’t work. cool effect I would like to replicate.

  • Is there a way to turn off this effect for a specific photo? I like how it works in my photo galleries, but I am setting up a “How to Buy” page, with an example image just as a part of the page design, and the zoom effect is happening with that image also. I just want this to be a static graphic on the page.

        • I should have mentioned, the two images at the top of that page were inserted just using the SmugMug page layout tools, and inserted from a gallery on my site that is set aside just for images used for the site design. Images in the accordion below are also in that same site-design gallery, but inserted using code as a part of the custom HTML used to create the accordion pull-downs. I suppose I could have set up the whole page just using HTML, but I was trying to stick with the SmugMug design tools as much as possible.

        • Never mind. I came up with a solution that worked. Little strange, but it works anyway. I had inserted the images using the SmugMug tools, and inserted Photos > Single Photo. This caused them to zoom with your hover effect I am using in my galleries. When I ended up doing was deleting the images, and reinserting them as Logos, then selecting the exact same image from my gallery. When it’s a “photo” it does the hover-zoom thing, but when it’s a “logo”, it doesn’t.

          I’d still like to hear how you would have turned off the zoom for a single image, in case I need to do something different in the future.

          Thanks, and I really appreciate your web site. Lots of cool stuff here.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.