From f570a77deb54fb69e6ea6a6c60251ed78bd20411 Mon Sep 17 00:00:00 2001 From: "S. D. Cloudt" Date: Thu, 16 Aug 2018 13:35:02 +0200 Subject: [PATCH] Use `visibility` to hide instead of `display`. in order to enable proper MathJAX rendering. --- src/styles/cp.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styles/cp.css b/src/styles/cp.css index 67166f67..cc816244 100644 --- a/src/styles/cp.css +++ b/src/styles/cp.css @@ -128,7 +128,7 @@ top: 0; left: 0; z-index: 1; - display: none; + visibility: hidden; -webkit-transform: translateX(100%) translate3d(100%, 0, 0); -moz-transform: translateX(100%) translate3d(100%, 0, 0); -ms-transform: translateX(100%) translate3d(100%, 0, 0); @@ -138,7 +138,6 @@ backface-visibility: hidden; } .h5p-course-presentation .h5p-slide.h5p-animate { - display: block; -webkit-transition: -webkit-transform 0.25s ease-in-out; -moz-transition: -moz-transform 0.25s ease-in-out; -ms-transition: -ms-transform 0.25s ease-in-out; @@ -149,6 +148,7 @@ } .h5p-course-presentation .h5p-current { display: block; + visibility: visible; -webkit-transform: translateX(0) translateZ(0); -moz-transform: translateX(0) translateZ(0); -ms-transform: translateX(0) translateZ(0);