title: add depth to an image with CSS
body: <p>I have an image and I rotated it with CSS to give it a perspective. I'd like to add a thickness to it to make it look like a book, like this:</p>
  
  <p><img src="https://i.stack.imgur.com/FxGvq.png" alt="result expected"></p>
  
  <p>The code/result I have used so far is as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.thumb {
    perspective: 600px;
  }
  
  #cover {
    width: 60%;
    max-width: 300px;
    display: block;
    margin: auto;
    transform: rotateY( 45deg);
    -webkit-box-shadow: -40px 25px 55px 6px #85919d;
    box-shadow: -40px 25px 55px 6px #85919d;
    transform-style: preserve-3d;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="thumb"&gt;
    &lt;img id="cover" src="https://about.canva.com/wp-content/uploads/sites/3/2015/01/children_bookcover.png"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>