auto-animate tweaks and new config options

This commit is contained in:
Hakim El Hattab
2020-02-20 20:15:41 +01:00
parent 4eca625330
commit f633a18fdf
3 changed files with 29 additions and 15 deletions

View File

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

View File

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