improve rendering accuracy of overview

This commit is contained in:
Hakim El Hattab 2012-11-23 15:48:10 -05:00
parent 8f7c51b4ec
commit 0ac4c6e585
4 changed files with 52 additions and 40 deletions

View File

@ -1055,6 +1055,11 @@ body {
*********************************************/ *********************************************/
.reveal.overview .slides { .reveal.overview .slides {
-webkit-perspective-origin: 0% 0%;
-moz-perspective-origin: 0% 0%;
-ms-perspective-origin: 0% 0%;
perspective-origin: 0% 0%;
-webkit-perspective: 700px; -webkit-perspective: 700px;
-moz-perspective: 700px; -moz-perspective: 700px;
-ms-perspective: 700px; -ms-perspective: 700px;

2
css/reveal.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -575,6 +575,11 @@ var Reveal = (function(){
dom.wrapper.classList.add( 'overview' ); dom.wrapper.classList.add( 'overview' );
// Not the pretties solution, but need to let the overview
// class apply first so that slides are measured accurately
// before we can positon them
setTimeout( function(){
var horizontalSlides = document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ); var horizontalSlides = document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR );
for( var i = 0, len1 = horizontalSlides.length; i < len1; i++ ) { for( var i = 0, len1 = horizontalSlides.length; i < len1; i++ ) {
@ -623,6 +628,8 @@ var Reveal = (function(){
layout(); layout();
}, 10 );
} }
} }

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long