File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 # answer {
3535 display : none;
3636 }
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+ }
3747 </ style >
3848</ head >
3949< body >
4050 < div >
41- < div > Is Yvette op vakantie? < span id ="thinking " class ="thinking "> ...</ span > </ div >
51+ < div > Is Yvette op vakantie?</ div >
52+ < div > < span id ="thinking " class ="thinking "> ...</ span > </ div >
4253 < div id ="answer "> Jup.</ div >
4354 </ div >
4455 < script >
4556 setTimeout ( ( ) => {
4657 const thinking = document . getElementById ( "thinking" ) ;
4758 const answer = document . getElementById ( "answer" ) ;
4859 if ( thinking ) thinking . style . display = "none" ;
49- if ( answer ) answer . style . display = "block" ;
50- } , 3000 ) ;
60+ if ( answer ) {
61+ answer . style . display = "block" ;
62+ answer . classList . add ( "tada" ) ;
63+ }
64+ } , 5000 ) ;
5165 </ script >
5266</ body >
5367</ html >
You can’t perform that action at this time.
0 commit comments