title: Swiper slider error startAutoplay is not a function
body: <p>I got a problem with swiper slider. I would like my swiper stop on mouse enter and continue on mouseleave. But my console shows me an error --> swiper.stopAutoplay is not a function, but the console log is displayed. And the same with startAutoplay. Does anybody know what am I doing wrong?</p>
  
  <pre><code>&lt;script&gt;
      var swiper = new Swiper('.swiper-container', {
        loop: true,
        speed:2000,
        autoplay: {
          delay: 3500,
        },
        pagination: {
          el: '.swiper-pagination',
        },
      });
  
  (function($) {
  $('.swiper-container').on('mouseenter', function(e){
      console.log('stop autoplay');
      swiper.stopAutoplay();
    })
  
    $('.swiper-container').on('mouseleave', function(e){
      console.log('start autoplay');
      swiper.startAutoplay();
    })
  })(jQuery);
  
  
    &lt;/script&gt;
  </code></pre>