QE1(64070227) (Copy 12636)
✨ PONGSIRI SUWANNASILP
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link href="https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap" rel="stylesheet"> <style> body { background-color: black; font-family: 'Kanit', sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; font-family: sans-serif; background-color: #3B4049; } .wrapper { height: 200px; width: 300px; background-color: #3760C9; position: relative; display: flex; justify-content: center; z-index: 0; } .lid { position: absolute; height: 100%; width: 100%; top: 0; left: 0; border-right: 150px solid transparent; border-bottom: 100px solid transparent; border-left: 150px solid transparent; transform-origin: top; transition: transform 0.25s linear; } /* Lid when closed */ .lid.one { border-top: 100px solid #658ced; transform: rotateX(0deg); z-index: 3; transition-delay: 0.75s; } /* Lid when opened */ .lid.two { border-top: 100px solid #3760C9; transform: rotateX(90deg); z-index: 1; transition-delay: 0.5s; } .envelope { position: absolute; height: 100%; width: 100%; top: 0; left: 0; border-top: 100px solid transparent; border-right: 150px solid #C4DFF0; border-bottom: 100px solid #C4DFF0; border-left: 150px solid #a4d4f2; z-index: 3; } .letter { position: absolute; top: 0; width: 80%; height: 80%; background-color: white; border-radius: 15px; z-index: 2; transition: 0.5s; } .letter p { text-align: center; font-size: 30px; margin-top: 30px; color: #3B4049; } /* .wrapper:hover .letter { transform: translateY(-50px); transition-delay: 0.5s; } */ </style> <script async src='/cdn-cgi/bm/cv/669835187/api.js'></script></head> <body> <div class="wrapper"> <div class="lid one" id="few1"></div> <div class="lid two" id="few2"></div> <div class="envelope" onclick="clicklecture();"></div> <div class="letter" id="few3"> <center> <button onclick="biglecture();" style="padding: 20px; background-color: transparent; border: none; font-family: 'Kanit', sans-serif; font-size: 30px; color: #3760C9" id="few4">Click Here !!</button> </center> <button onclick="biglecture();" style="display: none" id="few5">Click Here !!</button> </div> </div> <script> function clicklecture() { document.getElementById('few1').style = 'transform: rotateX(90deg); transition-delay: 0s;' document.getElementById('few2').style = 'transform: rotateX(180deg); transition-delay: 0s;' document.getElementById('few3').style = 'transform: translateY(-50px); transition-delay: 0.5s;' console.log('few2'); } function biglecture() { document.getElementById('few3').style = 'width: 100vh; height: 50vh; transform: translateY(-100px); z-index: 10000; background-image: url("https://cdn.discordapp.com/attachments/859281200228466709/941701557446131792/image0.png"); background-size: cover;' document.getElementById('few4').style = 'display: none;' document.getElementById('few5').style = 'display: block;' } </script> <script type="text/javascript">(function(){window['__CF$cv$params']={r:'6dbe55219d9626d9',m:'VtQEXAOxOWNuQraT65bzHx7.fCSb.nLAO_MSpv_aWIc-1644590428-0-AaFCmmuKHzRwW8aextJLvNSzYzUzaJs2Ml4Jv/VIHDaZf3MSj1v8zhpmeiHdxlpcrvRMFfavMAXeF3smtaa0J3ECRXCpDsEe9Y1QRNiOinauelmbxtITL5HNrKzKND4wOwrGTqV/Gkhb6R7256z6gAf8zxCON9UjQtcOAzqWpSuPcVmLbI8/fdDJK5jOWDZF/Q==',s:[0xf08580c283,0x7d486f7180],}})();</script></body> </html>