Fix
This commit is contained in:
		
							
								
								
									
										8
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								index.js
									
									
									
									
									
								
							@@ -168,6 +168,10 @@ const init = async (items = [], options = {}, index = 0) => {
 | 
			
		||||
 | 
			
		||||
    const gallery = document.body.querySelector('.advdominion-lg');
 | 
			
		||||
 | 
			
		||||
    gallery.querySelector('.advdominion-lg__container').style = `
 | 
			
		||||
        visibility: hidden;
 | 
			
		||||
    `;
 | 
			
		||||
 | 
			
		||||
    await show(options?.animation?.show?.duration, options?.animation?.show?.easing);
 | 
			
		||||
 | 
			
		||||
    const swiper = new Swiper(
 | 
			
		||||
@@ -176,6 +180,10 @@ const init = async (items = [], options = {}, index = 0) => {
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    swiper.on('init', function () {
 | 
			
		||||
        gallery.querySelector('.advdominion-lg__container').style = `
 | 
			
		||||
            visibility: '';
 | 
			
		||||
        `;
 | 
			
		||||
 | 
			
		||||
        if (this.slides[this.activeIndex].classList.contains('advdominion-lg__item_video')) {
 | 
			
		||||
            playVideo(this.slides[this.activeIndex]);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user