• Resolved alissit

    (@alissit)


    Hi, thanks for adding the offset to the sliders.

    Is it possible to add this effect to the JSON so that different offsets can be used on mobile vs desktop?

    How built out is that JSON on the backend?

    For example:


    {
    "0": {
    "slidesPerView": 1.5,
    "spaceBetween": 30,
    "slidesOffsetBefore": 20
    },
    "500": {
    "slidesPerView": 2,
    "slidesOffsetBefore": 30
    },
    "900": {
    "slidesPerView": 2.5,
    "slidesOffsetBefore": 50
    },
    "1200": {
    "slidesPerView": 4,
    "slidesOffsetBefore": 70
    }
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alissit

    (@alissit)

    Just tested it and it works, which is great.

    Can all the usual Swiper properties be added in this fashion?

    Plugin Author digitalapps

    (@digitalapps)

    Hello, with JSON you can add any options from the official API. If something isnt working as expected, let me know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Slides Offset’ is closed to new replies.