Effect How to - Piles of paper effect








Question

We would like to know how to piles of paper effect.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.layered-paper {<!--   w  w w .ja v a 2  s . c o  m-->
  background: #eee;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), /* The top layer shadow */
        0 10px 0 -5px #eee,                    /* The second layer */
        0 10px 1px -4px rgba(0, 0, 0, 0.15),   /* The second layer shadow */
        0 20px 0 -10px #eee,                   /* The third layer */
        0 20px 1px -9px rgba(0, 0, 0, 0.15);   /* The third layer shadow */
  padding: 30px;
}
</style>

</head>
<body>
  <div class="layered-paper">java2s.com</div>
</body>
</html>

The code above is rendered as follows: