title: Always scroll swiper slides to top
body: <p>I am using swiper.js.
  I would like to always have new/active slides scroll to the top, so when a new slide enters the viewport, the content must be scrolled to the top.</p>
  
  <p>I have a fiddle here: <a href="https://jsfiddle.net/p406sfe4/8/" rel="nofollow noreferrer">https://jsfiddle.net/p406sfe4/8/</a></p>
  
  <p>I though that this script might accomplish what I need, but it doesn't seem to work:</p>
  
  <pre><code>swiper.on('slideChangeEnd', function(s) {
      s.slides.each(function() {
      if ($(this).index() !== s.activeIndex) $(this)[0].scrollTop = 0
     });
  });
  </code></pre>
  
  <p>Thanks!</p>