|
| 1 | +<!doctype html> |
| 2 | +<html lang="nl"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 6 | + <meta name="robots" content="noindex, nofollow" /> |
| 7 | + <title>Tessa</title> |
| 8 | + <style> |
| 9 | + html, body { |
| 10 | + height: 100%; |
| 11 | + margin: 0; |
| 12 | + } |
| 13 | + body { |
| 14 | + display: flex; |
| 15 | + align-items: center; |
| 16 | + justify-content: center; |
| 17 | + background: #fff; |
| 18 | + color: #000; |
| 19 | + font-family: Arial, Helvetica, sans-serif; |
| 20 | + text-align: center; |
| 21 | + font-size: 5em; |
| 22 | + font-weight: bolder; |
| 23 | + } |
| 24 | + .thinking { |
| 25 | + display: inline-block; |
| 26 | + width: 0; |
| 27 | + overflow: hidden; |
| 28 | + vertical-align: bottom; |
| 29 | + animation: dots 1.2s steps(4, end) infinite; |
| 30 | + } |
| 31 | + @keyframes dots { |
| 32 | + to { width: 1.2em; } |
| 33 | + } |
| 34 | + #answer { |
| 35 | + display: none; |
| 36 | + } |
| 37 | + .tada { |
| 38 | + animation: tada 700ms ease-in-out both; |
| 39 | + } |
| 40 | + @keyframes tada { |
| 41 | + 0% { transform: scale(1); } |
| 42 | + 10%, 20% { transform: scale(0.9) rotate(-3deg); } |
| 43 | + 30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); } |
| 44 | + 40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); } |
| 45 | + 100% { transform: scale(1) rotate(0); } |
| 46 | + } |
| 47 | + </style> |
| 48 | +</head> |
| 49 | +<body> |
| 50 | + <div> |
| 51 | + <div>Is Tessa op vakantie?</div> |
| 52 | + <div><span id="thinking" class="thinking">...</span></div> |
| 53 | + <div id="answer">Jup, en Simon heeft dorst.</div> |
| 54 | + </div> |
| 55 | + <script> |
| 56 | + setTimeout(() => { |
| 57 | + const thinking = document.getElementById("thinking"); |
| 58 | + const answer = document.getElementById("answer"); |
| 59 | + if (thinking) thinking.style.display = "none"; |
| 60 | + if (answer) { |
| 61 | + answer.style.display = "block"; |
| 62 | + answer.classList.add("tada"); |
| 63 | + } |
| 64 | + }, 5000); |
| 65 | + </script> |
| 66 | +</body> |
| 67 | +</html> |
0 commit comments