summaryrefslogtreecommitdiffhomepage
path: root/css/reveal.css
diff options
context:
space:
mode:
authorMichał Smoliński2013-09-10 21:23:10 +0200
committerMichał Smoliński2013-09-10 21:23:10 +0200
commit2b5c06c4ef3002381c1007160f8ab60b4b2bd641 (patch)
treebb7925620b99546e6cd789cacd0718ae73ea5b1d /css/reveal.css
parent79340908f451ea77b364b1955928664defbd3bf6 (diff)
Added parallax scrolling background
Diffstat (limited to 'css/reveal.css')
-rw-r--r--css/reveal.css24
1 files changed, 24 insertions, 0 deletions
diff --git a/css/reveal.css b/css/reveal.css
index a9b3888..0b9d2e9 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -1402,6 +1402,30 @@ body {
float: right
}
+/*********************************************
+ * PARALLAX BACKGROUND
+ *********************************************/
+.reveal[data-parallax-background] {
+ -webkit-transition: all 0.8s ease;
+ -moz-transition: all 0.8s ease;
+ -ms-transition: all 0.8s ease;
+ transition: all 0.8s ease;
+}
+
+/* Global transition speed settings */
+.reveal[data-parallax-background][data-transition-speed="fast"] {
+ -webkit-transition-duration: 400ms;
+ -moz-transition-duration: 400ms;
+ -ms-transition-duration: 400ms;
+ transition-duration: 400ms;
+}
+.reveal[data-parallax-background][data-transition-speed="slow"] {
+ -webkit-transition-duration: 1200ms;
+ -moz-transition-duration: 1200ms;
+ -ms-transition-duration: 1200ms;
+ transition-duration: 1200ms;
+}
+
/*********************************************
* LINK PREVIEW OVERLAY