1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-20 05:21:31 +02:00

auto-animate bug fixes + support for inheriting options from closest animated parent element

This commit is contained in:
Hakim El Hattab
2020-02-24 15:45:44 +01:00
parent f33ecadf5d
commit 1649bd0d98
3 changed files with 46 additions and 23 deletions

View File

@@ -1233,7 +1233,7 @@ body {
/*********************************************
* AUTO ANIMATE
*********************************************/
.reveal section[data-auto-animate]:not([data-auto-animate="running"]) [data-auto-animate-target="unmatched"] {
.reveal section[data-auto-animate]:not(.stack):not([data-auto-animate="running"]) [data-auto-animate-target="unmatched"] {
opacity: 0; }
/*********************************************

View File

@@ -1318,7 +1318,7 @@ $controlsArrowAngleActive: 36deg;
* AUTO ANIMATE
*********************************************/
.reveal section[data-auto-animate]:not([data-auto-animate="running"]) [data-auto-animate-target="unmatched"] {
.reveal section[data-auto-animate]:not(.stack):not([data-auto-animate="running"]) [data-auto-animate-target="unmatched"] {
opacity: 0;
}