===
This commit is contained in:
parent
c4e322ce79
commit
57ce5a5e3d
1 changed files with 2 additions and 2 deletions
|
|
@ -484,8 +484,8 @@ export default function( revealElement, options ) {
|
||||||
dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
|
dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
|
||||||
|
|
||||||
// Expose our configured slide dimensions as custom props
|
// Expose our configured slide dimensions as custom props
|
||||||
dom.viewport.style.setProperty( '--slide-width', typeof config.width == 'string' ? config.width : config.width + 'px' );
|
dom.viewport.style.setProperty( '--slide-width', typeof config.width === 'string' ? config.width : config.width + 'px' );
|
||||||
dom.viewport.style.setProperty( '--slide-height', typeof config.height == 'string' ? config.height : config.height + 'px' );
|
dom.viewport.style.setProperty( '--slide-height', typeof config.height === 'string' ? config.height : config.height + 'px' );
|
||||||
|
|
||||||
if( config.shuffle ) {
|
if( config.shuffle ) {
|
||||||
shuffle();
|
shuffle();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue