Skip to content

Commit bc30481

Browse files
committed
Update yvette.html
1 parent d958b3f commit bc30481

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

yvette.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,33 @@
2121
font-size: 5em;
2222
font-weight: bolder;
2323
}
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+
}
2437
</style>
2538
</head>
2639
<body>
2740
<div>
28-
<div>Is Yvette op vakantie?</div>
29-
<div>Jup.</div>
41+
<div>Is Yvette op vakantie? <span id="thinking" class="thinking">...</span></div>
42+
<div id="answer">Jup.</div>
3043
</div>
44+
<script>
45+
setTimeout(() => {
46+
const thinking = document.getElementById("thinking");
47+
const answer = document.getElementById("answer");
48+
if (thinking) thinking.style.display = "none";
49+
if (answer) answer.style.display = "block";
50+
}, 3000);
51+
</script>
3152
</body>
3253
</html>

0 commit comments

Comments
 (0)