From 16120cad84e30d5548a480b028bfe321b2c58aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=A4gg?= Date: Thu, 10 Sep 2015 17:34:21 +0200 Subject: [PATCH] better --- src/sass/_layout.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sass/_layout.scss b/src/sass/_layout.scss index d264788..9a00d41 100644 --- a/src/sass/_layout.scss +++ b/src/sass/_layout.scss @@ -226,6 +226,7 @@ body { min-height: calc(100% - 60px); margin: -7px auto; > .page { + position:absolute; &:not(.servicepage) { margin-top:60px; } @@ -242,6 +243,7 @@ body { &.anim-fade .page { &.animate { transition: opacity 0.5s ease-out; + position: absolute; } &.leave { margin-right: -100%; @@ -259,6 +261,7 @@ body { &.anim-pos .page { &.animate { transition: transform 0.5s ease-out; + position: absolute; } &.leave { transform:translate(-100%,0) @@ -276,6 +279,7 @@ body { &.anim-neg .page { &.animate { transition: transform 0.5s ease-out; + position: absolute; } &.leave { transform:translate(100%,0)