Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Template</title>
- <style>
- html, body {
- margin: 0;
- padding: 0;
- font-family: "Garamond", serif;
- background-color: #1c1c1c;
- background: linear-gradient(135deg, #1c1c1c 0%, #2d1b1b 50%, #1c1c1c 100%);
- color: #d8d8d8;
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .flip-container {
- width: 400px;
- height: 600px;
- perspective: 1000px;
- margin: 0;
- cursor: pointer;
- position: relative;
- }
- @media (max-height: 640px) {
- body {
- align-items: flex-start;
- padding-top: 20px;
- }
- }
- .flipper {
- position: relative;
- width: 100%;
- height: 100%;
- transition: transform 0.8s;
- transform-style: preserve-3d;
- }
- .flip-container.flipped .flipper {
- transform: rotateY(180deg);
- }
- .profile-container, .info-container {
- position: absolute;
- width: 100%;
- height: 100%;
- backface-visibility: hidden;
- border-radius: 15px;
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
- overflow: hidden;
- }
- .profile-container {
- background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(79, 18, 15, 0.3));
- border: 3px double #4f120f;
- padding: 20px;
- text-align: center;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .info-container {
- background: linear-gradient(145deg, rgba(79, 18, 15, 0.3), rgba(0, 0, 0, 0.9));
- border: 3px double #4f120f;
- transform: rotateY(180deg);
- padding: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .character-name {
- font-size: 32px;
- font-weight: bold;
- color: #e0e0e0;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
- border-bottom: 2px solid #4f120f;
- margin-bottom: 15px;
- padding-bottom: 10px;
- background: linear-gradient(45deg, #e0e0e0, #b8b8b8);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- }
- .playby {
- position: relative;
- margin: 15px 0;
- flex-grow: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- perspective: 1000px;
- }
- .playby img {
- max-width: 100%;
- max-height: 300px;
- border-radius: 15px;
- border: 2px solid #4f120f;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow: 0 0 15px rgba(79, 18, 15, 0.5);
- transform-style: preserve-3d;
- }
- .tilt-zone {
- position: absolute;
- width: 33.3%;
- height: 33.3%;
- background-color: transparent;
- z-index: 2;
- }
- .top-left { top: 0; left: 0; }
- .top-middle { top: 0; left: 33.3%; }
- .top-right { top: 0; left: 66.6%; }
- .mid-left { top: 33.3%; left: 0; }
- .mid-center { top: 33.3%; left: 33.3%; }
- .mid-right { top: 33.3%; left: 66.6%; }
- .bottom-left { top: 66.6%; left: 0; }
- .bottom-middle { top: 66.6%; left: 33.3%; }
- .bottom-right { top: 66.6%; left: 66.6%; }
- /* Top row - forward tilt */
- .top-left:hover ~ img {
- transform: rotateX(15deg) rotateY(-15deg) scale(1.08);
- box-shadow: -10px -10px 25px 15px rgba(79, 18, 15, 0.8);
- }
- .top-middle:hover ~ img {
- transform: rotateX(15deg) rotateY(0deg) scale(1.08);
- box-shadow: 0 -10px 25px 15px rgba(79, 18, 15, 0.8);
- }
- .top-right:hover ~ img {
- transform: rotateX(15deg) rotateY(15deg) scale(1.08);
- box-shadow: 10px -10px 25px 15px rgba(79, 18, 15, 0.8);
- }
- /* Middle row - neutral tilt */
- .mid-left:hover ~ img {
- transform: rotateX(0deg) rotateY(-15deg) scale(1.05);
- box-shadow: -10px 0 20px 10px rgba(79, 18, 15, 0.7);
- }
- .mid-center:hover ~ img {
- transform: rotateX(0deg) rotateY(0deg) scale(1.12);
- box-shadow: 0 0 25px 20px rgba(79, 18, 15, 0.9);
- }
- .mid-right:hover ~ img {
- transform: rotateX(0deg) rotateY(15deg) scale(1.05);
- box-shadow: 10px 0 20px 10px rgba(79, 18, 15, 0.7);
- }
- /* Bottom row - backward tilt */
- .bottom-left:hover ~ img {
- transform: rotateX(-15deg) rotateY(-15deg) scale(1.08);
- box-shadow: -10px 10px 25px 15px rgba(79, 18, 15, 0.8);
- }
- .bottom-middle:hover ~ img {
- transform: rotateX(-15deg) rotateY(0deg) scale(1.08);
- box-shadow: 0 10px 25px 15px rgba(79, 18, 15, 0.8);
- }
- .bottom-right:hover ~ img {
- transform: rotateX(-15deg) rotateY(15deg) scale(1.08);
- box-shadow: 10px 10px 25px 15px rgba(79, 18, 15, 0.8);
- }
- .quote {
- font-style: italic;
- font-size: 14px;
- color: #b8b8b8;
- margin: 10px 0;
- padding: 10px;
- background: rgba(79, 18, 15, 0.2);
- border-radius: 8px;
- border-left: 3px solid #4f120f;
- }
- .description {
- font-size: 16px;
- text-align: left;
- line-height: 1.6;
- margin-top: 10px;
- }
- .description p {
- margin: 0 0 10px 0;
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
- }
- .info-title {
- font-size: 28px;
- font-weight: bold;
- color: #e0e0e0;
- text-align: center;
- margin-bottom: 30px;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
- background: linear-gradient(45deg, #e0e0e0, #b8b8b8);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- }
- .info-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 15px;
- margin-bottom: 20px;
- }
- .info-item {
- background: rgba(0, 0, 0, 0.4);
- padding: 12px;
- border-radius: 8px;
- border: 1px solid #4f120f;
- transition: all 0.3s ease;
- }
- .info-item:hover {
- background: rgba(79, 18, 15, 0.3);
- transform: translateY(-2px);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
- }
- .info-label {
- font-size: 12px;
- color: #909090;
- text-transform: uppercase;
- letter-spacing: 1px;
- margin-bottom: 5px;
- }
- .info-value {
- font-size: 16px;
- color: #e0e0e0;
- font-weight: bold;
- }
- .full-width {
- grid-column: 1 / -1;
- }
- .affiliation-section {
- margin-top: 20px;
- padding: 15px;
- background: rgba(0, 0, 0, 0.4);
- border-radius: 8px;
- border: 1px solid #4f120f;
- }
- .affiliation-title {
- font-size: 14px;
- color: #909090;
- text-transform: uppercase;
- letter-spacing: 1px;
- margin-bottom: 10px;
- }
- .affiliation-list {
- list-style: none;
- padding: 0;
- margin: 0;
- }
- .affiliation-list li {
- padding: 5px 0;
- color: #e0e0e0;
- border-bottom: 1px solid rgba(79, 18, 15, 0.3);
- }
- .affiliation-list li:last-child {
- border-bottom: none;
- }
- .flip-hint {
- position: absolute;
- bottom: 10px;
- left: 50%;
- transform: translateX(-50%);
- font-size: 12px;
- color: #909090;
- opacity: 0.7;
- animation: pulse 2s infinite;
- }
- .flip-hint.click {
- animation: none;
- opacity: 1;
- color: #4f120f;
- font-weight: bold;
- }
- @keyframes pulse {
- 0%, 100% { opacity: 0.7; }
- 50% { opacity: 1; }
- }
- </style>
- </head>
- <body>
- <div class="flip-container" onclick="toggleFlip()">
- <div class="flipper">
- <!-- Front Side - Profile -->
- <div class="profile-container">
- <div class="character-name">Character Name</div>
- <div class="playby">
- <div class="tilt-zone top-left"></div>
- <div class="tilt-zone top-middle"></div>
- <div class="tilt-zone top-right"></div>
- <div class="tilt-zone mid-left"></div>
- <div class="tilt-zone mid-center"></div>
- <div class="tilt-zone mid-right"></div>
- <div class="tilt-zone bottom-left"></div>
- <div class="tilt-zone bottom-middle"></div>
- <div class="tilt-zone bottom-right"></div>
- <img src="https://i.pinimg.com/736x/73/90/62/739062ef320128cb1f29891f6cf7ec87.jpg">
- </div>
- <div class="quote">"Insert Quote Here."</div>
- <div class="description">
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque at lacus ex. Sed vel ultricies eros. Integer vehicula ut purus a pharetra.</p>
- <p>Aliquam erat volutpat. Fusce a mollis libero, sit amet scelerisque neque. Suspendisse eu augue mi.</p>
- </div>
- <br>
- <div class="flip-hint">Click to view details</div>
- </div>
- <!-- Back Side - Information -->
- <div class="info-container">
- <div class="info-title">Character Details</div>
- <div class="info-grid">
- <div class="info-item">
- <div class="info-label">Age</div>
- <div class="info-value">??</div>
- </div>
- <div class="info-item">
- <div class="info-label">Height</div>
- <div class="info-value">?'??"</div>
- </div>
- <div class="info-item">
- <div class="info-label">Weight</div>
- <div class="info-value">??? lbs</div>
- </div>
- <div class="info-item">
- <div class="info-label">Sex</div>
- <div class="info-value">???</div>
- </div>
- <div class="info-item full-width">
- <div class="info-label">Race</div>
- <div class="info-value">???(Mutant / Witch / Wizard)</div>
- </div>
- <div class="info-item full-width">
- <div class="info-label">Origins</div>
- <div class="info-value">???</div>
- </div>
- </div>
- <div class="affiliation-section">
- <div class="affiliation-title">Affiliations</div>
- <ul class="affiliation-list">
- <li>? ? ?</li>
- <li>? ? ?</li>
- <li>? ? ?</li>
- </ul>
- </div>
- <div class="flip-hint click">Click to return to profile</div>
- </div>
- </div>
- </div>
- <script>
- function toggleFlip() {
- const container = document.querySelector('.flip-container');
- container.classList.toggle('flipped');
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment