Skip to content

Turn off swiping/arrows/pagination when not enough items #272

Closed

Description

@micka-fdz

Hello.

How can we turn off swiping/arrows/pagination when there are less items than perPage option?

I think we need an additional option, like watchOverflow on Swiper.

Activity

  1. rensite commented on Jun 2, 2021

    @rensite

    In your case arrows should be disabled by splide, check it.
    Disabled arrows can be easily hidden using css:

    <style>
      .splide__arrow {
        transition: opacity .3s ease;
      }
      .splide__arrow:disabled {
        opacity: 0;
        pointer-events: none;
      }
    </style>
    

    The reason why not just display:none is because opacity can be animated.

  2. locked and limited conversation to collaborators on Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions