From 6f9b10b269826bd5665cfdca7a41ff6f861ceb10 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 19 Dec 2019 08:16:42 +0100 Subject: [PATCH] switch to fixed unit for fragment animations to make them more consistent --- css/reveal.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/css/reveal.scss b/css/reveal.scss index a7b148c3..176c736b 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -102,7 +102,7 @@ body { } .reveal .slides section .fragment.fade-up { - transform: translate(0, 20%); + transform: translate(0, 40px); &.visible { transform: translate(0, 0); @@ -110,7 +110,7 @@ body { } .reveal .slides section .fragment.fade-down { - transform: translate(0, -20%); + transform: translate(0, -40px); &.visible { transform: translate(0, 0); @@ -118,7 +118,7 @@ body { } .reveal .slides section .fragment.fade-right { - transform: translate(-20%, 0); + transform: translate(-40px, 0); &.visible { transform: translate(0, 0); @@ -126,7 +126,7 @@ body { } .reveal .slides section .fragment.fade-left { - transform: translate(20%, 0); + transform: translate(40px, 0); &.visible { transform: translate(0, 0);