Prechádzať zdrojové kódy

Remove transition in aside

@soyjavi 13 rokov pred
rodič
commit
7fae2e4b08

+ 0 - 8
src/stylesheets/lungo.layout.aside.styl

@@ -29,19 +29,11 @@ aside
   visibility: hidden
   z-index: -1
 
-  transition-property( opacity, z-index, transform )
-  transition-duration( TRANSITION_TIME )
-  transition-timing-function( DEFAULT_TRANSITION )
-  backface-visibility( hidden )
 
   &.show
     z-index: 0
     visibility: visible
 
-  &:not(.right)
-    transform translateX(-(ASIDE_WIDTH))
-    &.show
-      transform translateX(0px)
   &.right
     right: 0px
 

+ 5 - 2
src/view/Lungo.View.Aside.js

@@ -68,8 +68,11 @@ Lungo.View.Aside = (function(lng, undefined) {
                 lng.Element.Cache.section.removeClass(aside_stylesheet);
             }
 
-            lng.Element.Cache.aside = null;
-            aside.removeClass(CLASS.SHOW);
+            setTimeout(function() {
+                lng.Element.Cache.aside = null;
+                aside.removeClass(CLASS.SHOW);
+            }, lng.Constants.TRANSITION.DURATION);
+
         }
     };