Moran Moran - 1 year ago 51
jQuery Question

How to change the size of this gallery?

I have this for an example

How can i change the size of the images to be :

width: 370px;
height: 200px;

And i see only 3 images (slides per view) ?

Eventually i want it to be like that:

enter image description here

I use this for swiper.

Answer Source

Change this part:

<div class="teaser-gallery__slider js-teaser-gallery-slider" data-slides-per-view="5">

for this:

<div class="teaser-gallery__slider js-teaser-gallery-slider" data-slides-per-view="3">

change the size:

figure {
margin: 0;
   width: 370px;
   height: 200px;