From 3bfd06c06da6e3f7fa03959f498ef3ba001d180c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 2 Feb 2020 07:43:15 +0100 Subject: [PATCH] additional auto-animation tests, default to 1s --- js/reveal.js | 4 ++-- test/examples/auto-animate.html | 31 +++++++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/js/reveal.js b/js/reveal.js index 04b8ff5f..087d9ca1 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -193,7 +193,7 @@ // Default settings for or auto-animate transitions, can be // overridden per-slide via data arguments autoAnimateEasing: 'ease', - autoAnimateDuration: 0.7, + autoAnimateDuration: 1.0, // CSS styles that auto-animations will animate between autoAnimateStyles: [ @@ -3893,7 +3893,7 @@ to.style[propertyName] = toProps[propertyName]; } ); - }, 1 ); + }, 0 ); } diff --git a/test/examples/auto-animate.html b/test/examples/auto-animate.html index 3ae23c73..3b5a96be 100644 --- a/test/examples/auto-animate.html +++ b/test/examples/auto-animate.html @@ -19,19 +19,46 @@
+

Fade and slide

Opacity 1.0

-
+
+

Fade and slide

Opacity 0.2

-

Text props

+

Text props

Text props

+
+

Swapping list items

+
    +
  • One
  • +
  • Two
  • +
  • Three
  • +
+
+
+

Swapping list items

+
    +
  • Two
  • +
  • One
  • +
  • Three
  • +
+
+
+

Swapping list items

+
    +
  • Two
  • +
  • Three
  • +
  • One
  • +
+
+

SLIDE 1

Animate Anything