From 98760ee964a58d51ab5b59d5b696556b1cb7c7b5 Mon Sep 17 00:00:00 2001 From: dixso Date: Sat, 7 Jan 2017 08:58:04 +0100 Subject: [PATCH] Bug fix letmein effect --- src/custombox.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/custombox.scss b/src/custombox.scss index 384208d..c5a835a 100644 --- a/src/custombox.scss +++ b/src/custombox.scss @@ -900,9 +900,9 @@ $effect23: #{$cb}-flash; transform: scale(1); opacity: 1; } -@mixin letmeinOverlayAction($transform) { +@mixin letmeinOverlayAction($transform, $origin: 50% 0) { transform: $transform; - transform-origin: 50% 0; + transform-origin: $origin; transform-style: preserve-3d; } @@ -947,7 +947,7 @@ $effect23: #{$cb}-flash; } @keyframes letmeinTopOverlay { to { - @include letmeinOverlayAction(rotateX(2deg)); + @include letmeinOverlayAction(rotateX(2deg), 0 50%); } } @keyframes letmeinOutTopOverlay {