From 2b5c06c4ef3002381c1007160f8ab60b4b2bd641 Mon Sep 17 00:00:00 2001 From: Michał Smoliński Date: Tue, 10 Sep 2013 21:23:10 +0200 Subject: Added parallax scrolling background --- css/reveal.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'css/reveal.css') 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 -- cgit v1.2.3