|
| 1 | +* { |
| 2 | + margin: 0; |
| 3 | + padding: 0; |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | +body { |
| 7 | + height: 100vh; |
| 8 | + display: flex; |
| 9 | + align-items: center; |
| 10 | + justify-content: center; |
| 11 | + background-color: #1a0000; |
| 12 | + overflow: hidden; |
| 13 | + font-family: 'Poppins', sans-serif; |
| 14 | +} |
| 15 | +.scene { |
| 16 | + position: relative; |
| 17 | + width: 300px; |
| 18 | + height: 420px; |
| 19 | +} |
| 20 | +.ladder { |
| 21 | + position: absolute; |
| 22 | + left: 50%; |
| 23 | + bottom: 60px; |
| 24 | + transform: translateX(-50%) rotate(2deg); |
| 25 | + display: flex; |
| 26 | + flex-direction: column; |
| 27 | + justify-content: space-between; |
| 28 | + height: 300px; |
| 29 | + width: 90px; |
| 30 | + border-left: 6px solid #4d1e00; |
| 31 | + border-right: 6px solid #4d1e00; |
| 32 | +} |
| 33 | +.rung { |
| 34 | + height: 12px; |
| 35 | + background: #b87333; |
| 36 | + border-radius: 5px; |
| 37 | + box-shadow: inset 0 -1px 2px rgba(0,0,0,0.3); |
| 38 | +} |
| 39 | +.stickman { |
| 40 | + position: absolute; |
| 41 | + bottom: 60px; |
| 42 | + left: 50%; |
| 43 | + transform: translateX(-50%); |
| 44 | + width: 2px; |
| 45 | + height: 70px; |
| 46 | + background: white; |
| 47 | + opacity: 0; |
| 48 | + animation: climb 6s ease-in-out infinite; |
| 49 | +} |
| 50 | +.stickman::before { |
| 51 | + content: ""; |
| 52 | + position: absolute; |
| 53 | + top: -22px; |
| 54 | + left: 50%; |
| 55 | + width: 24px; |
| 56 | + height: 24px; |
| 57 | + border: 2px solid white; |
| 58 | + border-radius: 50%; |
| 59 | + transform: translateX(-50%); |
| 60 | + transition: all 0.3s ease; |
| 61 | + animation: headGlow 6s ease-in-out infinite; |
| 62 | +} |
| 63 | +.stickman::after { |
| 64 | + content: ""; |
| 65 | + position: absolute; |
| 66 | + top: 20px; |
| 67 | + left: 50%; |
| 68 | + width: 60px; |
| 69 | + height: 2px; |
| 70 | + background: white; |
| 71 | + transform: translateX(-50%) rotate(25deg); |
| 72 | + box-shadow: |
| 73 | + 0 25px white, |
| 74 | + 0 45px white; |
| 75 | + animation: limbSwing 1s ease-in-out infinite alternate; |
| 76 | +} |
| 77 | +@keyframes climb { |
| 78 | + 0% { bottom: 60px; opacity: 0; } |
| 79 | + 10% { opacity: 1; } |
| 80 | + 50% { bottom: 300px; opacity: 1; } |
| 81 | + 80% { bottom: 330px; opacity: 1; } |
| 82 | + 100% { bottom: 360px; opacity: 0; } |
| 83 | +} |
| 84 | +@keyframes headGlow { |
| 85 | + 0%, 50% { |
| 86 | + border-color: white; |
| 87 | + box-shadow: none; |
| 88 | + } |
| 89 | + 70% { |
| 90 | + border-color: #ff0000; |
| 91 | + box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; |
| 92 | + } |
| 93 | + 100% { |
| 94 | + border-color: #1a0000; |
| 95 | + box-shadow: none; |
| 96 | + } |
| 97 | +} |
| 98 | +@keyframes limbSwing { |
| 99 | + 0% { |
| 100 | + transform: translateX(-50%) rotate(25deg); |
| 101 | + } |
| 102 | + 100% { |
| 103 | + transform: translateX(-50%) rotate(-25deg); |
| 104 | + } |
| 105 | +} |
| 106 | + |
| 107 | +.horror-text { |
| 108 | + position: absolute; |
| 109 | + bottom: 0; |
| 110 | + width: 100%; |
| 111 | + text-align: center; |
| 112 | + color: #ff2e00; |
| 113 | + font-size: 1.2rem; |
| 114 | + letter-spacing: 2px; |
| 115 | + animation: flicker 2s infinite; |
| 116 | +} |
| 117 | +@keyframes flicker { |
| 118 | + 0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { |
| 119 | + opacity: 1; |
| 120 | + text-shadow: 0 0 10px #ff2e00, 0 0 20px #ff2e00; |
| 121 | + } |
| 122 | + 20%, 24%, 55% { |
| 123 | + opacity: 0.3; |
| 124 | + text-shadow: none; |
| 125 | + } |
| 126 | +} |
0 commit comments