title: How to make slides to autoplay in Splidejs
body: <p>I am newbie to Splidejs.</p>
  <p>I want to  make slides in my web page to be autoplayed when page loaded.</p>
  <p>I tried with this code but it doesn't accomplish my task
  (I set autoplay property to true).</p>
  <pre><code>     document.addEventListener( 'DOMContentLoaded', function () {
       new Splide('#image-slider').mount() , {
      
       autoplay:true, 
       type   : 'loop',
       cover  : true,
       height : '1000rem',
       perPage:3,
       };
       } );
  </code></pre>