patric-boehner
1/13/2017 - 9:27 AM

Slick Slider Don't Show Till Loaded and Fade In

Slick Slider Don't Show Till Loaded and Fade In

var $slider = $('.homepage-slidehsow')
        .on('init', function(slick) {
          
            // Just checking if its running
            console.log('fired!');
            
            // Fade in containing element for slick slider
            $('.homepage-slidehsow').fadeIn(900);
            
        })
        
        // Whatever settings you want
        .slick({
						infinite: true,
						speed: 300,
						slidesToShow: 1,
						centerMode: true,
						variableWidth: true,
						lazyLoad: 'ondemand',
						autoplay: true,
						autoplaySpeed: 7000,
        });