css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

Uses compass to automatically generate the CSS for a variable of rows/columns. You can also play with the depth of the 3D effect and the angle the first and last rows should be rotated to.

If you change/play around with the configuration at the top, don't forget to update the html to include enough image "tiles".

I've made the 3d effect appear on hover purely so that the depth can be seen more effectively. Click and hold on an image to show it in full.

I've included some fallback JS for clicking to show and hide the images in full, but commented it out as this is a kind of proof of concept for doing this with just CSS.

Thanks to Nic da Costa (https://plus.google.com/u/0/111523616060404197347/about) for the help with the calculations (my maths isn't too great).

  • Note: I know it's still not perfect, but as I said, my maths isn't too great, so I'll come back to this at some point and try to fix it up.


  1. No comments yet.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.