Explorar o código

No transition when section it's first-child

@soyjavi %!s(int64=13) %!d(string=hai) anos
pai
achega
eeff0fdb35
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/stylesheets/lungo.media.phone.styl

+ 6 - 1
src/stylesheets/lungo.media.phone.styl

@@ -45,8 +45,13 @@
 
       /* Transition: SLIDE */
       &[data-transition="slide"]
-        transform translateX(100%)
         visibility: visible
+
+        &:first-child
+          transform translateX(0%)
+        &:not(first-child)
+          transform translateX(100%)
+
         &.show
           transform translateX(0%)
         &.hide