Browse Source

Transition animation for when animations show up

Reddo 5 years ago
parent
commit
e41bf8f7d4
2 changed files with 10 additions and 5 deletions
  1. 8 0
      sass/_modal.scss
  2. 2 5
      sass/_page.scss

+ 8 - 0
sass/_modal.scss

@@ -48,7 +48,15 @@ body.modal {
   transition: filter .3s ease-in-out;
   transition: filter .3s ease-in-out;
 }
 }
 
 
+#sceneAnimation {
+  transition: opacity  .3s ease-in-out;
+}
+
 #mainPage.turn {
 #mainPage.turn {
+  & #sceneAnimation {
+    opacity: 1;
+  }
+
   & #leftWindow , #rightWindow , #currentRoomTab, #hyperlinksTab, #fakeparserTab , #statusLine {
   & #leftWindow , #rightWindow , #currentRoomTab, #hyperlinksTab, #fakeparserTab , #statusLine {
     pointer-events: none;
     pointer-events: none;
     filter: blur(2px);
     filter: blur(2px);

+ 2 - 5
sass/_page.scss

@@ -227,16 +227,13 @@ body {
 }
 }
 
 
 #sceneAnimation {
 #sceneAnimation {
-  display: none;
+  display: block;
   position: fixed;
   position: fixed;
   bottom: 0px;
   bottom: 0px;
   left: 50%;
   left: 50%;
   z-index: 1;
   z-index: 1;
   pointer-events: none;
   pointer-events: none;
-}
-
-#mainPage.turn #sceneAnimation {
-  display: block;
+  opacity: 0;
 }
 }
 
 
 .sceneAnimation {
 .sceneAnimation {