diff options
author | Hakim El Hattab | 2013-06-18 08:37:06 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-06-18 08:37:06 -0400 |
commit | eb5b39e6850d5c7067a0cb9a113b60617c10f9d8 (patch) | |
tree | 222b794aeaceeaee35c54f7b8ebf1980dfce2673 /css/reveal.css | |
parent | b0b6c756295cefb66b93a5f2d807eab2e43eb8a4 (diff) |
support for background transition overrides
Diffstat (limited to 'css/reveal.css')
-rw-r--r-- | css/reveal.css | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/css/reveal.css b/css/reveal.css index 6e3e957..7071516 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -1308,7 +1308,7 @@ body { /********************************************* - * + * PER-SLIDE BACKGROUNDS *********************************************/ .reveal>.backgrounds { @@ -1345,7 +1345,8 @@ body { } /* Linear sliding transition style */ -.reveal[data-background-transition=linear]>.backgrounds .slide-background { +.reveal[data-background-transition=linear]>.backgrounds .slide-background, +.reveal>.backgrounds .slide-background[data-background-transition=linear] { opacity: 1; -webkit-backface-visibility: hidden; @@ -1359,14 +1360,16 @@ body { -o-transition-duration: 800ms; transition-duration: 800ms; } - .reveal[data-background-transition=linear]>.backgrounds .slide-background.past { + .reveal[data-background-transition=linear]>.backgrounds .slide-background.past, + .reveal>.backgrounds .slide-background.past[data-background-transition=linear] { -webkit-transform: translate(-100%, 0); -moz-transform: translate(-100%, 0); -ms-transform: translate(-100%, 0); -o-transform: translate(-100%, 0); transform: translate(-100%, 0); } - .reveal[data-background-transition=linear]>.backgrounds .slide-background.future { + .reveal[data-background-transition=linear]>.backgrounds .slide-background.future, + .reveal>.backgrounds .slide-background.future[data-background-transition=linear] { -webkit-transform: translate(100%, 0); -moz-transform: translate(100%, 0); -ms-transform: translate(100%, 0); @@ -1374,14 +1377,16 @@ body { transform: translate(100%, 0); } - .reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.past { + .reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.past, + .reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=linear] { -webkit-transform: translate(0, -100%); -moz-transform: translate(0, -100%); -ms-transform: translate(0, -100%); -o-transform: translate(0, -100%); transform: translate(0, -100%); } - .reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.future { + .reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.future, + .reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=linear] { -webkit-transform: translate(0, 100%); -moz-transform: translate(0, 100%); -ms-transform: translate(0, 100%); |