Forráskód Böngészése

rename 'linear' background transition to 'slide'

Hakim El Hattab 11 éve
szülő
commit
c3da106363
4 módosított fájl, 12 hozzáadás és 12 törlés
  1. 1 1
      README.md
  2. 10 10
      css/reveal.css
  3. 0 0
      css/reveal.min.css
  4. 1 1
      js/reveal.min.js

+ 1 - 1
README.md

@@ -264,7 +264,7 @@ Slides are contained withing a limited portion of the screen by default to allow
 </section>
 ```
 
-Backgrounds transition using a fade animation by default. This can be changed to a linear sliding transition by passing ```backgroundTransition: 'linear'``` to the ```Reveal.initialize()``` call.
+Backgrounds transition using a fade animation by default. This can be changed to a linear sliding transition by passing ```backgroundTransition: 'slide'``` to the ```Reveal.initialize()``` call. Alternatively you can set ```data-background-transition``` on any section with a background to override that specific transition.
 
 
 ### Internal links

+ 10 - 10
css/reveal.css

@@ -1345,8 +1345,8 @@ body {
 	}
 
 /* Linear sliding transition style */
-.reveal[data-background-transition=linear]>.backgrounds .slide-background,
-.reveal>.backgrounds .slide-background[data-background-transition=linear] {
+.reveal[data-background-transition=slide]>.backgrounds .slide-background,
+.reveal>.backgrounds .slide-background[data-background-transition=slide] {
 	opacity: 1;
 
 	-webkit-backface-visibility: hidden;
@@ -1360,16 +1360,16 @@ body {
 	     -o-transition-duration: 800ms;
 	        transition-duration: 800ms;
 }
-	.reveal[data-background-transition=linear]>.backgrounds .slide-background.past,
-	.reveal>.backgrounds .slide-background.past[data-background-transition=linear] {
+	.reveal[data-background-transition=slide]>.backgrounds .slide-background.past,
+	.reveal>.backgrounds .slide-background.past[data-background-transition=slide] {
 		-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>.backgrounds .slide-background.future[data-background-transition=linear] {
+	.reveal[data-background-transition=slide]>.backgrounds .slide-background.future,
+	.reveal>.backgrounds .slide-background.future[data-background-transition=slide] {
 		-webkit-transform: translate(100%, 0);
 		   -moz-transform: translate(100%, 0);
 		    -ms-transform: translate(100%, 0);
@@ -1377,16 +1377,16 @@ body {
 		        transform: translate(100%, 0);
 	}
 
-	.reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.past,
-	.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=linear] {
+	.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,
+	.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide] {
 		-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>.backgrounds .slide-background>.slide-background.future[data-background-transition=linear] {
+	.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,
+	.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide] {
 		-webkit-transform: translate(0, 100%);
 		   -moz-transform: translate(0, 100%);
 		    -ms-transform: translate(0, 100%);

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
css/reveal.min.css


+ 1 - 1
js/reveal.min.js

@@ -1,5 +1,5 @@
 /*!
- * reveal.js 2.5.0 (2013-06-18, 08:35)
+ * reveal.js 2.5.0 (2013-06-18, 08:38)
  * http://lab.hakim.se/reveal-js
  * MIT licensed
  *

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott