improve rendering accuracy of overview
This commit is contained in:
parent
8f7c51b4ec
commit
0ac4c6e585
4 changed files with 52 additions and 40 deletions
|
@ -1055,6 +1055,11 @@ body {
|
|||
*********************************************/
|
||||
|
||||
.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;
|
||||
-moz-perspective: 700px;
|
||||
-ms-perspective: 700px;
|
||||
|
|
2
css/reveal.min.css
vendored
2
css/reveal.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -575,6 +575,11 @@ var Reveal = (function(){
|
|||
|
||||
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 );
|
||||
|
||||
for( var i = 0, len1 = horizontalSlides.length; i < len1; i++ ) {
|
||||
|
@ -623,6 +628,8 @@ var Reveal = (function(){
|
|||
|
||||
layout();
|
||||
|
||||
}, 10 );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue