show two slides with a button

Asked on January 25, 2016 in Development.

Hi I am also looking for a way to show two slides with the click of a button.

Should i call s.slideTo from the core swiper.js?

What would the code look like?

Cheers,

Quinten Peuling Layers User
Reply
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on February 2, 2016.

    Hi there,

    This is only possible if you are developing your own extension |(the stock slider cannot be customized to this level with DevKit alone)

    Slider behavior triggered by the user is up to you in how you develop your widget and in the supporting JS you add. If you are thinking of a button that the user clicks to change the slide view from one to two per panel, you will have to pass that option to swiper using Ajax so it can adjust its width (as well you would need to add a new class that loads the correct CSS to size the slides). If you are looking for a slider option that allows users to choose between normal and two slides per panel,  you would have the same requirements with the difference being that one is an option in the widget array and the other is just a button with a JS trigger.

    For help with customizing or building swiper js functions, please visit their community forum here:

    http://www.idangero.us/swiper/forum/

    Here someone asked show two slides with a button so if you know what the real context is then this would be really helpful for all of us now. He can have https://assignmentman.co.uk/ this for the first time this year as we all were working for this now or never.

    on October 22, 2020.

    I like to join this competition because I am  interested to give answers to questions that the students have asked from the expert writers of    Assignment Writing Services

    on February 10, 2021.
    Reply