Skip to content
CSS Transforms

Sketches from the transforms talk

Whiteboard drawings from our talk on 3D transforms.

Icons are the hardest isometric art to get right because there is so little room. At small sizes one of the three faces usually has to go, so we pick the two that best describe the object. A book keeps its cover and spine; a box keeps its top and front. Deciding early saves a lot of redrawing.

3 imagesJPG, 1200 × 1200

Download ZIP 364 KB

We keep every demo in a small repository with one folder per post. Each folder has the HTML, the CSS and a short note on what we tried and dropped. Months later, when a reader asks why a tutorial does something a certain way, the note usually has the answer and saves us a long investigation.

Share

Written by

Theo Okafor

Theo writes about 3D transforms and rendering performance. He keeps a spreadsheet of every browser bug he has hit with preserve-3d.

All 18 posts by Theo Okafor

12 comments

  1. Eli Novak

    Short and useful. More quick tips like this, please.

    Reply to Eli Novak
  2. Rosa Medina

    Tiny typo in the second code block: the unit is missing on the translate value.

    Reply to Rosa Medina
  3. Nina Ahlberg

    This finally made the order of rotations click for me. I had them the wrong way round for weeks.

    Reply to Nina Ahlberg
  4. Omar Haddad

    Love the palette. Could you share the exact lightness values?

    Reply to Omar Haddad
  5. Pia Jensen

    This is the clearest explanation of draw order I have read.

    Reply to Pia Jensen
    1. Theo OkaforAuthor

      The templates are in the downloads section of the reference post.

      Reply to Theo Okafor
  6. Hana Sato

    I teach an intro CSS class and I am going to use this as the final project.

    Reply to Hana Sato
    1. Farah Aziz

      Thanks! A follow-up is already in the drafts.

      Reply to Farah Aziz
  7. Kofi Mensah

    Our designer drew the scene in Figma and I rebuilt it with your approach in an afternoon.

    Reply to Kofi Mensah
  8. Ivo Petrov

    Great write-up. Would love a follow-up on doing the same thing with SVG.

    Reply to Ivo Petrov
    1. Theo OkaforAuthor

      Good question. Usually that means something is flattening the 3D context; check for overflow hidden on a parent.

      Reply to Theo Okafor
    2. Chen Wei

      Fixed now, thanks for spotting it.

      Reply to Chen Wei

Leave a comment

Your email address won’t be published. Required fields are marked.