demo/dist/demo.js
function restore(event) {
	        // We're only bothered about height and width on the container
	        if (event.target !== container || !['width', 'height'].includes(event.propertyName)) {
	          return;
	        } // Revert back to auto


	        container.style.width = '';
	        container.style.height = ''; // Only listen once

	        off.call(_this9, container, transitionEndEvent, restore);
	      }
function restore(event) {
	        // We're only bothered about height and width on the container
	        if (event.target !== container || !['width', 'height'].includes(event.propertyName)) {
	          return;
	        } // Revert back to auto


	        container.style.width = '';
	        container.style.height = ''; // Only listen once

	        off.call(_this9, container, transitionEndEvent, restore);
	      }
function restore ( event ) { // We're only bothered about height and width on the container if ( event . target !== container || ! [ 'width' , 'height' ] . includes ( event . propertyName ) ) { return ; } // Revert back to auto container . style . width = '' ; container . style . height = '' ; // Only listen once off . call ( _this9 , container , transitionEndEvent , restore ) ; }
Restore auto height/width
Restore auto height / width