Box (Branch 4586)
✨ APHATSARA MORATSATHIAN
<html> <head> <title>Let's Start </title> <style> body{ margin:3em; } .cover{ width:300px; margin:auto; font-size: 0; /* transform-style:; */ /* transform:; */ transition: .3s; cursor: pointer; position:relative; transform:rotate(20deg) rotatey(0deg) rotatey(0deg); transform-style: preserve-3d; } .cover img{ width:100%; } .paper-1 { background: linear-gradient(to right,#eee,#ddd); right: -20px; top: 0; width: 20px; height: 100%; transform-origin:left; transform:rotateY(90deg); border-right: 1px solid #999; } .paper-2 { background: linear-gradient(to bottom,#eee,#ddd); left: 0; bottom: -20px; width: 100%; height: 20px; transform-origin:top; transform:rotateX(-90deg); border-bottom: 1px solid #999; } .paper { position: absolute; box-sizing: border-box; z-index: 50; } </style> </head> <body> <div class="cover"> <img src="https://content.shopback.com/th/wp-content/uploads/2019/05/01185252/pic9_phralan.in_.th_.jpg"> <div class="paper paper-1"> </div> <div class="paper paper-2"> </div> </div> </body> </html>