Skip to content

Breakpoints on VARIABLE WIDTH and MULTIPLE SLIDES TO SCROLL #651

Open
@roughiain

Description

@roughiain

The ability to set the number of slides to show for different widths

document.addEventListener('DOMContentLoaded', function () {
        var multiSlides = document.querySelector('.js_multislides');

        lory(multiSlides, {
            infinite: 4,
            slidesToScroll: 4
            breakpoints[
                   {
                        width:600px,
                       slidesToShow:3
                   },
                  {
                       width:320px,
                       slidesToShow:1,
                       slidesToScroll:1
                  }]

        });
    });

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions