diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-01-16 16:15:28 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-01-16 16:15:28 +0100 |
commit | 99d92362c8e50e81554610b18a2f5a4f76491e0f (patch) | |
tree | 1d8b2498e3a98166c921987c3f8074726e4f32ee /js | |
parent | b71705c76ff867ac2601d17cec4228ca3b1d5870 (diff) | |
download | fosdem-2018-presentation-99d92362c8e50e81554610b18a2f5a4f76491e0f.tar fosdem-2018-presentation-99d92362c8e50e81554610b18a2f5a4f76491e0f.tar.gz |
no longer set o-transforms
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index 8d547dd..4d5fdd3 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1051,7 +1051,6 @@ element.style.WebkitTransform = transform; element.style.MozTransform = transform; element.style.msTransform = transform; - element.style.OTransform = transform; element.style.transform = transform; } @@ -1654,11 +1653,13 @@ hbackground = horizontalBackgrounds[i], hoffset = config.rtl ? -105 : 105; + var htransform = 'translateZ(-'+ depth +'px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)'; + hslide.setAttribute( 'data-index-h', i ); // Apply CSS transform - transformElement( hslide, 'translateZ(-'+ depth +'px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)' ); - transformElement( hbackground, 'translateZ(-'+ depth +'px) translate(' + ( ( i - indexh ) * hoffset ) + '%, 0%)' ); + transformElement( hslide, htransform ); + transformElement( hbackground, htransform ); if( hslide.classList.contains( 'stack' ) ) { @@ -1671,12 +1672,14 @@ var vslide = verticalSlides[j], vbackground = verticalBackgrounds[j]; + var vtransform = 'translate(0%, ' + ( ( j - verticalIndex ) * 105 ) + '%)'; + vslide.setAttribute( 'data-index-h', i ); vslide.setAttribute( 'data-index-v', j ); // Apply CSS transform - transformElement( vslide, 'translate(0%, ' + ( ( j - verticalIndex ) * 105 ) + '%)' ); - transformElement( vbackground, 'translate(0%, ' + ( ( j - verticalIndex ) * 105 ) + '%)' ); + transformElement( vslide, vtransform ); + transformElement( vbackground, vtransform ); // Navigate to this slide on click vslide.addEventListener( 'click', onOverviewSlideClicked, true ); |