unmatched auto-aniamte elements now adhere to element-level duration/delay attributes

This commit is contained in:
Hakim El Hattab
2020-03-17 19:38:26 +01:00
parent cf9eb6e103
commit 376b8230bb
4 changed files with 29 additions and 10 deletions

View File

@ -1283,11 +1283,11 @@ $controlsArrowAngleActive: 36deg;
* AUTO ANIMATE
*********************************************/
.reveal [data-auto-animate-target="unmatched"] {
.reveal [data-auto-animate-target^="unmatched"] {
will-change: opacity;
}
.reveal section[data-auto-animate]:not(.stack):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;
}