vue-slick icon indicating copy to clipboard operation
vue-slick copied to clipboard

Responsive

Open yustik opened this issue 7 years ago • 5 comments

One question i want it to use the responsive options from Slick

responsive: [ { breakpoint: 1200, settings: { arrows: false, slidesToShow: 4 } }, { breakpoint: 768, settings: { arrows: false, slidesToShow: 3 } }, { breakpoint: 576, settings: { arrows: false, slidesToShow: 2 } } ]

But seems not to work in vue, there is a workaround for this in the component?

yustik avatar Dec 04 '17 16:12 yustik

Any solution for that ?

buroli avatar Jan 19 '18 12:01 buroli

Any updates ?

shkodasv avatar Jul 19 '18 09:07 shkodasv

It works for me. Be sure that you put "responsive" in slickOptions object which is forward to vue-slick component

slickOptions: {
          slidesToShow: 4,
          slidesToScroll: 4,
          infinite: false,
          arrows: false,
          responsive: [
            {
              breakpoint: 1024,
              settings: {
                slidesToShow: 3,
                slidesToScroll: 2
              }
            },

            {
              breakpoint: 767,
              settings: {
                slidesToShow: 2,
                slidesToScroll: 2
              }
            },
            {
              breakpoint: 639,
              settings: {
                slidesToShow: 1,
                slidesToScroll: 1
              }
            },
          ]
        }

kamilmaliszewski avatar Jul 19 '18 12:07 kamilmaliszewski

will try. thx!

shkodasv avatar Jul 20 '18 07:07 shkodasv

I am getting the same almost like the component is removing inline styling I use to show the background image

Micah789 avatar Jan 13 '21 11:01 Micah789