File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments