From 861b27be4409b3337b51298c63ae74a4c075480a Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 3 Nov 2021 14:09:24 -0700 Subject: [PATCH] Support transition-speed="slow" with default fade If I set my default transition to fade and then use `
` without an explicit `data-transition="fade"`, the speed setting has no effect, because it is picking up the speed from the edited "not" clause. I *believe* this should fix that problem, though I am not a CSS expert. --- css/reveal.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/css/reveal.scss b/css/reveal.scss index 9071734d726..8ecd581437c 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -1015,9 +1015,16 @@ $controlsArrowAngleActive: 36deg; .reveal.fade .slides section:not([data-transition]), .reveal.fade .slides>section>section:not([data-transition]) { transform: none; - transition: opacity 0.5s; + transition: opacity; } +.reveal .slides section[data-transition=fade], +.reveal.fade .slides section:not([data-transition-speed]), +.reveal.fade .slides>section>section:not([data-transition-speed]) { + transition-duration: 0.5s; +} + + .reveal.fade.overview .slides section, .reveal.fade.overview .slides>section>section {