File tree 2 files changed +22
-7
lines changed
2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 55
55
text-transform : uppercase;
56
56
}
57
57
58
- canvas {
59
- width : 100% ;
60
- height : 100% ;
61
- display : block;
62
- }
63
-
64
58
.fork {
65
59
position : absolute;
66
60
bottom : 0 ;
@@ -73,3 +67,22 @@ canvas {
73
67
font-size : x-small;
74
68
z-index : 1 ; /* Above the canvas. */
75
69
}
70
+
71
+ .scene {
72
+ width : 100% ;
73
+ height : 100% ;
74
+ display : block;
75
+ animation : 4s ease-in-out showScene;
76
+ }
77
+
78
+ @keyframes showScene {
79
+ 0% {
80
+ transform : scale (0 );
81
+ border-radius : 100% ;
82
+ }
83
+
84
+ 100% {
85
+ transform : scale (1 );
86
+ border-radius : 0 ;
87
+ }
88
+ }
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ export class SceneManager {
57
57
}
58
58
59
59
render ( containerEl : Element ) : void {
60
- containerEl . appendChild ( this . renderer . domElement ) ;
60
+ const canvas = this . renderer . domElement ;
61
+ canvas . classList . add ( 'scene' ) ;
62
+ containerEl . appendChild ( canvas ) ;
61
63
this . renderer . setAnimationLoop ( this . animate . bind ( this ) ) ;
62
64
this . spawnSound ( ) ;
63
65
}
You can’t perform that action at this time.
0 commit comments