Untitled

 avatar
unknown
plain_text
2 years ago
884 B
3
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    body {
      margin: 0;
      overflow: hidden;
      cursor: none;
    }

    .container {
      position: relative;
      width: 100vw;
      height: 100vh;
      perspective: 1000px;
    }

    .cube {
      position: absolute;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
    }

    .face {
      position: absolute;
      width: 100%;
      height: 100%;
      background: url('path-to-your-image.jpg') center/cover;
      border: 1px solid #ccc;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .face:nth-child(1) { transform: translateZ(-50vw); }
    .face:nth-child(2) { transform: rotateY(90deg) translateZ(50vw); }
    .face:nth-child(3) { tr

Editor is loading...
Leave a Comment