3D Thumbnail Hover Effects

A tutorial about how to create 3D thumbnail hover effects with CSS 3D transforms and jQuery.

The
New
Collective

🎨✨💻 Stay ahead of the curve with handpicked, high-quality frontend development and design news, picked freshly every single day. No fluff, no filler—just the most relevant insights, inspiring reads, and updates to keep you in the know.

Prefer a weekly digest in your inbox? No problem, we got you covered. Just subscribe here.

Feedback 110

Comments are closed.
  1. Really great!
    I want to use this effect on a image that is 980×400 px. How do I change the the size in the css?

    Thank you for a great work!!

    • Hi Marcus, you will need to adjust the width/height of the view, the width of the slice, the overlay (image width divided by 5), the translate3d values and the background positions of the single slices. I’ve uploaded another demo (demo 5, ZIP file is also updated) with a 980×400px image. The perspective value for the view should also be adjusted. Hope it helps, cheers, ML

  2. Great, awesome plugin i search from last two week,
    really i found on your site great work,
    Thanks

  3. I was trying to mix it up with fancybox on click galery. And yes it works but thumbnails always are on top even .view z-index is lower than fancybox content. Can some1 help me with this?

  4. And i found bug only in chrome when u hover many times this thumbnails u get this – screen. greetings

    • I check it on all browsers, on safari it works the best. on chrom only first 1 thumbnail works , rest like on screen. Opera and firefox dont work at all. But on firefox from this tutorial worked. So it is not done yet think so. And im using Windows 7:).
      I’m looking for bugs and shortcomings to improve your great hover effect. Pozdrawiam 🙂

  5. Dear MARY LOU

    I like your tutorial so much it give me inspiration to work but,
    I want it to open from left to right (ref.demo2) I tried to edit some CSS but it’s not work.
    can I have any suggestion from you.

    thank you so much

    Unyong

  6. First of all: WOW! Very nice!

    But, I have a problem.
    I can’t get demo 2 working.
    I guess I have to change the style_common.css, but I just don’t know how 😐
    Please help me!

    ciao

  7. Hii!

    First of all: GREAT demo! The effect off 3D css is awesome.

    But can you help me out? I’ve tried your demo on: http://temp.gijsjager.nl.
    But it seems to have a bug wich your demo hasn’t.

    When I hover my elements sometimes the in the other elements objects dissapear. It almost looks like a browser faulty.
    I can’t seem to figure out why it does that.
    Also when I use the perspective of 500px, I can’t hover on the items behind the image that folds. When I set the perspective to an awesome 20.000px :)) it fixes the problem.

    I hope you have the time to help me out!

  8. I am having the same problem as Gijs is. When I hover over certain objects others seem to disappear. Please a little help here?

    Other then that I really do love this hover.

  9. Using Demo 2… Everything works but my last slice is identical to the first slice. Any ideas where it’s gone wrong?

  10. Interesting… you think it could be used on production sites and limit availability with modernizr (as to only trigger the effect if certain requirementes are made, i’m guessing css 3d transforms)

    Gonna start experimenting, thanks a lot.

  11. To anyone wondering why the downloaded demo doesn’t work like the demo on this site, it’s because of:

    .main {
    overflow: hidden; }

  12. This is really nice! I was a bit disappointed at the lack of documentation on exactly what properties needed to be changed to adjust the width of the image container. Also, if you’re experiencing quirks after downloading the demo files, it’s because the overflow on div.main is set to hidden, which causes a bug when hovering.

  13. Hi Mary Lou !

    Great tuto as usual, this kind of little animation are a efficient way to create a good UX !

    As many people who commented before me, i have a problem with the code for the “Demo 2”

    At the end of your code there is a link to ‘css/fallback.css’, and when i change it to link it to the one on my server the code is not working anymore as it works on Dreamweaver.


    Modernizr.load({
    test: Modernizr.csstransforms3d && Modernizr.csstransitions,
    yep : [‘js/jquery.hoverfold.js’],
    nope: ‘css/fallback.css’,
    callback : function( url, result, key ) {

    Do you have any advice please ?

  14. Hi i am trying to implement this GREAT!!!! CSS script in my web site but i can not make it work in Chrome! It is working perfect in SAFARI & FIREFOX but in chrome always the first div is doing crazy stuff!

    i have them all i one gallery row with no margins left or right! STYLE1 is that i am trying to get working

    here is the HTML markup

    something
    else
    <a></a>

    something
    else
    <a></a>

    something
    else
    <a></a>

    something
    else
    <a></a>

    something
    else
    <a></a>

    something
    else
    <a></a>

    • This won’t work on IE 6,7,8 (no CSS3 support), 9 (no css3 3d transform support).

      This code works partially in IE 10, with some optimization it might work.

  15. What a fun little piece of code! I’m putting together a little version of this that’ll work in WordPress based on user generated settings and some simple JS/PHP to generate the 3D transition values dynamically based on their desired width/height. Here’s a preview of mine in progress: http://kollection.mdnw.net

  16. Hi guys! I’m working on my web site and using your wonderful 3D Thumbnail Hover Effects. It’s amazing. And thank you for that. But are there any ways to use effect by vertical (not horizontal as now)? My images have 200px wide and after hover there isn’t enough space for text in right. And I want to show it in bottom. How do you think?

  17. hiiii guys!!! I am new in website design field. I am trying to use it, but it’s not working.
    could you plz tell me the exact codes which I should put in the html tag….

  18. This is really sweet!
    We are trying to figure out how to do a number of these sized differently (120×120 px, 180x180px). We can’t get the overlays to position. How do we get the view div to also translate to the overlays and slices?

    thanks again!

    • im actually doing this right now – shadowbox is the only one i found that actually works with this

  19. Thanks for this brilliant work! It looks amazing!
    I am eager to know are there any possible hacks to make this outstanding thing work in the old versions of browsers, and especially our “very much loved” IE.
    Well, I mean is it possible to write some Javascript that will be used only by the browsers that can’t see these effects?

  20. Hello everyone i love this effect, there is one little problem im running into.
    I have 4 images right now right out of the example and 2 of them do not open to 50% one is about 30% the other one is about 10% cant even see the link any ideas?

  21. This is really awesome! I’m having trouble changing the direction of the animation though, any tips?