Box (Copy 4348)
✨ PRATYA DOKBUA
<html> <head> <title>Let's Start </title> <style> body{ margin:3em; } .cover{ width:300px; margin:auto; font-size: 0; transform-style:preserve-3d; transform:rotatex(30deg) rotatey(30deg) rotatez(30deg); transition: .3s; cursor: pointer; position:relative; } .cover img{ width:100%; } .paper-1 { background: linear-gradient(to right,#eee,#ddd); right: -20px; top: 0; width: 20px; height: 100%; /* transform-origin:; */ transform-origin:; /* transform:; */ 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:; */ transform-origin:top; /* transform:; */ transform:rotateX(-90deg); border-bottom: 1px solid #999; } .paper-3 { background: linear-gradient(to right,#eee,#ddd); left: -20px; top: 0; width: 20px; height: 100%; /* transform-origin:; */ transform-origin:; /* transform:; */ transform:rotatey(90deg); border-right: 1px solid #999; } .paper-4 { background: linear-gradient(to bottom,#eee,#ddd); top:-20px; left: 0; bottom: -20px; width: 100%; height: 20px; /* transform-origin:; */ transform-origin:bottom; /* transform:; */ transform:rotateX(-90deg); border-bottom: 1px solid #999; } .paper-5 { background: black; top: 0; width: 20px; height: 100%; transform:translateZ(-20px); 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 class="paper paper-3"> </div> <div class="paper paper-4"> </div> <div class="paper paper-5"> </div> </div> </body> </html>