# โยนเหรียญ

> โยนเหรียญ โยนเหรียญ โยนเหรียญ คัดลอกประวัติ ล้างประวัติ [&hellip;]

# โยนเหรียญ




					- :root { --result-size: 44px; --history-size: 15px; } @keyframes coinToss { 0% { transform: translateY(0) rotateX(0deg); } 25% { transform: translateY(-120px) rotateX(180deg) scale(1.1); } 50% { transform: translateY(-160px) rotateX(360deg) scale(1.15); } 75% { transform: translateY(-120px) rotateX(540deg) scale(1.1); } 100% { transform: translateY(0) rotateX(720deg) scale(1); } } @media (max-width: 768px) { @keyframes coinToss { 0% { transform: translateY(0) rotateX(0deg); } 25% { transform: translateY(-80px) rotateX(180deg) scale(1.1); } 50% { transform: translateY(-110px) rotateX(360deg) scale(1.15); } 75% { transform: translateY(-80px) rotateX(540deg) scale(1.1); } 100% { transform: translateY(0) rotateX(720deg) scale(1); } } } @keyframes bounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.05); } } @keyframes shine { 0%, 100% { box-shadow: 0 10px 30px rgba(119, 133, 65, 0.3), inset 0 2px 10px rgba(255,255,255,0.5); } 50% { box-shadow: 0 15px 40px rgba(119, 133, 65, 0.5), inset 0 2px 15px rgba(255,255,255,0.8); } } * { box-sizing: border-box; } .coin-container { width: 100%; background: white; border-radius: 20px; display: flex; margin: 0 auto; min-height: 500px; font-family: 'PT Mono', monospace; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); } @media (max-width: 768px) { .coin-container { flex-direction: column-reverse; min-height: 100vh; } } .left-panel { flex: 1; padding: 40px; background: #f8f9fa; display: flex; flex-direction: column; gap: 18px; justify-content: center; } @media (max-width: 768px) { .left-panel { padding: 20px; gap: 12px; } } .right-panel { flex: 1; padding: 40px; background: #FFECD6; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; } @media (max-width: 768px) { .right-panel { padding: 30px 20px 20px; min-height: auto; flex: 1; } } .title { text-transform: uppercase; letter-spacing: 1px; font-size: 30px; text-align: center; color: #333; font-weight: bold; margin-bottom: 10px; } @media (max-width: 768px) { .title { font-size: 22px; margin-bottom: 5px; } } .btn { padding: 16px 24px; border-radius: 14px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; background: #778541; color: white; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; box-shadow: 0 4px 12px rgba(119, 133, 65, 0.3); font-family: 'PT Mono', monospace; text-transform: uppercase; letter-spacing: 1px; position: relative; } @media (max-width: 768px) { .btn { padding: 12px 20px; font-size: 14px; } } .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(119, 133, 65, 0.4); } .btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(119, 133, 65, 0.3); } .btn-secondary { background: #d26a56; box-shadow: 0 4px 12px rgba(210, 106, 86, 0.3); } .btn-secondary:hover { box-shadow: 0 6px 20px rgba(210, 106, 86, 0.4); } .btn-gray { background: #424242; box-shadow: 0 4px 12px rgba(66, 66, 66, 0.3); } .btn-gray:hover { box-shadow: 0 6px 20px rgba(66, 66, 66, 0.4); } .coin-area { height: 250px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; } @media (max-width: 768px) { .coin-area { height: 180px; margin-bottom: 15px; } } .coin { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, #778541 0%, #9da75e 100%); display: flex; justify-content: center; align-items: center; font-size: 60px; font-weight: 900; color: white; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); box-shadow: 0 10px 30px rgba(119, 133, 65, 0.3), inset 0 2px 10px rgba(255,255,255,0.5), inset 0 -4px 10px rgba(0,0,0,0.2); border: 5px solid rgba(255,255,255,0.4); position: relative; transform-style: preserve-3d; } @media (max-width: 768px) { .coin { width: 110px; height: 110px; font-size: 50px; border: 4px solid rgba(255,255,255,0.4); } } .coin::before { content: ''; position: absolute; top: 10%; left: 10%; width: 30%; height: 30%; background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%); border-radius: 50%; } .coin.toss { animation: coinToss 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; } .coin.result { animation: bounce 0.6s ease-out, shine 2s ease-in-out infinite; } .result-text { font-size: var(--result-size); margin-top: 10px; font-weight: bold; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 2px; color: #333; } @media (max-width: 768px) { .result-text { font-size: 28px; margin-top: 5px; } } .stats { margin-top: 20px; display: flex; gap: 40px; justify-content: center; font-size: 14px; color: #666; } @media (max-width: 768px) { .stats { gap: 25px; margin-top: 10px; } } .stat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; } .stat-value { font-size: 28px; font-weight: bold; color: #778541; } @media (max-width: 768px) { .stat-value { font-size: 22px; } } .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; } .history-box { margin-top: 25px; text-align: center; font-size: var(--history-size); opacity: 0.85; max-width: 450px; line-height: 1.6; word-wrap: break-word; color: #555; } @media (max-width: 768px) { .history-box { font-size: 12px; max-width: 100%; padding: 0 10px; margin-top: 15px; line-height: 1.4; } } ### โยนเหรียญ โยนเหรียญ คัดลอกประวัติ ล้างประวัติ ? พร้อมโยน 0 หัว 0 ก้อย let flipHistory = []; let flipping = false; let headsCount = 0; let tailsCount = 0; function flipCoin() { if (flipping) return; flipping = true; const coin = document.getElementById("coin"); const resultText = document.getElementById("resultText"); const historyBox = document.getElementById("history"); coin.classList.remove("result"); coin.classList.add("toss"); coin.textContent = "?"; setTimeout(() => { const value = Math.random() { resultText.textContent = value + "!"; resultText.style.opacity = "1"; resultText.style.color = value === "Heads" ? "#778541" : "#d26a56"; }, 100); flipHistory.push(value); if (flipHistory.length > 50) flipHistory.shift(); historyBox.textContent = "Last 10: " + flipHistory.slice(-10).join(", "); coin.classList.remove("toss"); flipping = false; }, 1200); } function copyHistory() { if (flipHistory.length === 0) return; navigator.clipboard.writeText(flipHistory.join("\n")) .then(() => alert("History copied to clipboard!")); } function clearHistory() { flipHistory = []; headsCount = 0; tailsCount = 0; document.getElementById("history").textContent = ""; document.getElementById("headsCount").textContent = "0"; document.getElementById("tailsCount").textContent = "0"; document.getElementById("resultText").textContent = "Ready to flip"; document.getElementById("resultText").style.color = "#333"; document.getElementById("coin").textContent = "?"; document.getElementById("coin").style.background = "linear-gradient(135deg, #778541 0%, #9da75e 100%)"; document.getElementById("coin").classList.remove("result"); } TakiDaki โยนเหรียญ คือเครื่องมือที่รวดเร็วและโปร่งใสสำหรับการตัดสินใจง่ายๆ อย่างเป็นกลาง — เมื่อใดก็ตามที่คุณต้องการผลลัพธ์ 50/50 ที่ยุติธรรม เพียงกดปุ่ม ดูการโยนที่มีแอนิเมชัน — แล้วรับผลลัพธ์แบบสุ่มทันที เหมาะสำหรับครีเอเตอร์ ทีม คู่รัก และทุกคนที่ต้องการวิธีตัดสินใจระหว่างสองตัวเลือกอย่างชัดเจนและน่าเชื่อถือ ด้วยอินเทอร์เฟซที่สะอาดและอัลกอริทึมสุ่มอย่างสมบูรณ์ ผู้ชมของคุณจะเห็นว่าผลลัพธ์รวดเร็ว ยุติธรรม และไม่สามารถโกงได้ ### 🟢 ใช้งานได้สำหรับ: การเลือกระหว่างสองไอเดียหรือตัวเลือก
- การตัดสินใจรวดเร็วในเกม
- การสุ่มเลือกในงานเล็กๆ หรือความท้าทาย
- การโต้ตอบสนุกๆ กับผู้ติดตาม

### ✨ ข้อดีหลัก:

- โยนเหรียญทันทีพร้อมแอนิเมชันลื่นไหล
- อินเทอร์เฟซเรียบง่าย — ไม่ต้องตั้งค่า
- ใช้งานได้ทันทีในเบราว์เซอร์
- ระบบติดตามและล้างประวัติในตัว
- คัดลอกหรือแชร์ผลลัพธ์ได้ง่าย
- ยุติธรรม รวดเร็ว และโปร่งใส — ทุกการโยนเป็นอิสระ

ต้องการวิธีง่ายๆ และซื่อสัตย์ในการได้คำตอบ 50/50 ไหม?

TakiDaki โยนเหรียญ ให้ผลทันที — และดูน่าสนใจด้วยสายตา