JSFiddle - React, Tailwind, and code Playground

by Paweł Niemczyk

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Premium Credit Card</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <style>
    body {
      font-family: 'Inter', sans-serif;
    }
    
    .card-container {
      perspective: 1000px;
    }
    
    .card {
      transform-style: preserve-3d;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    
    .card:hover {
      transform: rotateY(180deg);
    }
    
    .card-front, .card-back {
      backface-visibility: hidden;
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 20px;
    }
    
    .card-back {
      transform: rotateY(180deg);
    }
    
    .glass-effect {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .gradient-premium {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .gradient-dark {
      background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .chip {
      width: 35px;
      height: 28px;
      background: linear-gradient(45deg, #ffd700, #ffed4a);
      border-radius: 4px;
      position: relative;
      overflow: hidden;
    }
    
    .chip::before {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      right: 2px;
      bottom: 2px;
      background: linear-gradient(45deg, #f1c40f, #f39c12);
      border-radius: 2px;
    }
    
    .chip::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 12px;
      height: 8px;
      background:...