1011–[CSS] 3D Cube Rotation

Media Files

No media files provided.

Project Submission

+ Submit Assignment

Your submissions

Background

We want to create the following 3D cube rotation effect.

See the Pen 3D Cube Rotation by Thomas Seng Hin Mak (@makzan) on CodePen.

Requirement

Given the following HTML:

<div class='box-scene'>
    <div class='box'>
        <div class='front face'>
            <img src='http://placehold.it/180x180/' alt=''>
        </div>
        <div class="side face">
            <p>This is back</p>
        </div>
    </div>
</div>
<div class='box-scene'>
    <div class='box'>
        <div class='front face'>
            <img src='http://placehold.it/180x180/' alt=''>
        </div>
        <div class="side face">
            <p>This is back</p>
        </div>
    </div>
</div>

Help

❓ Show help content

Submission guideline

  • You may use Codepen to implement it and submit the link.
  • You may implement them in file and attach the HTML/CSS file via submission.