Skip to content

Releases: wide/modulus-slider

3.0.2

18 Jan 11:43
1ed1fc4

Choose a tag to compare

  • Add real button HTML elements and its content in slider.twig
<button class="{{ classlist.prev }}" type="button" role="button">{{ navigationPrev | raw }}</button>
<button class="{{ classlist.next }}" type="button" role="button">{{ navigationNext | raw }}</button>

3.0.1

04 Jan 15:37

Choose a tag to compare

  • Fix: do not apply focus() on onSlideChange(), if the element does not exist

2.3.1

04 Jan 16:12

Choose a tag to compare

  • Fix: do not apply focus() on onSlideChange(), if the element does not exist

3.0.0

26 Oct 15:44
d892bac

Choose a tag to compare

Upgrade to Swiper 7

Changes

  • pagination, navigation or scrollbar HTML code added
{% include '@wide::modulus-slider' with {
  navigation: true,
  pagination: true,
  scrollbar: true
} %}
<!-- // Some code before -->

  <!-- If we need pagination -->
  <div class="slider_pagination swiper-pagination"></div>

  <!-- If we need navigation buttons -->
  <div class="slider_button swiper-button-prev"></div>
  <div class="slider_button swiper-button-next"></div>

  <!-- If we need scrollbar -->
  <div class="slider_scrollbar swiper-scrollbar"></div>

<!-- // Some code after -->

Note: Don't forget to add them in modules Swiper parameter.

Breaking changes

  • Swiper container element now should have class swiper instead of swiper-container
<div class="swiper">
  <div class="swiper-wrapper">
    <div class="swiper-slide">Slide 1</div>
    ...
  </div>
</div>
  • watchVisibleSlides parameter has been removed and its functionality has been merged with watchSlidesProgress
  • Before Swiper 7, modules had to be installed using Swiper.use() method on Swiper class. In version 7 it is still supported, but there is a new recommended way of installing modules using modules parameter:

[Migration Guide to Swiper 7] (https://swiperjs.com/migration-guide)

2.3.0

22 Jul 15:27
840d2e0

Choose a tag to compare

  • Use of swiper/core instead of swiper/bundle
  • Upgrade Swiper package

2.2.3

28 Jun 09:33
3d74c95

Choose a tag to compare

  • Fix an error caused by a missing parameter in Object.assign()

2.2.2

25 Jun 13:36
d4aab10

Choose a tag to compare

  • Use swiper/bundle 

2.2.1

21 Jun 10:08

Choose a tag to compare

  • Fix Swiper SCSS path

2.2.0

21 Jun 09:41

Choose a tag to compare

  • Update Swiper version

2.1.1

16 Jun 21:32

Choose a tag to compare

  • Add @babel/core package in package.json