Hide next/prev button on first/last slide respectively #4348
Unanswered
BenHappyPlates
asked this question in
Q&A
Replies: 2 comments 3 replies
-
I'm trying to do this with the following style rule but it doesn't seem to be working for me at the moment. swiper-container::part(button-prev)[aria-disabled=true],
swiper-container::part(button-next)[aria-disabled=true] {
display: none;
} See my code sandbox example. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Since there is still no clean global solution for this, and for folks using the web components, you can do: <swiper-container
navigation="true"
direction="horizontal"
threshold="10"
slides-per-view="auto"
space-between="15"
slides-per-group-auto="true"
inject-styles='[".swiper-button-disabled{ display:none !important; }"]'
>
.
.
.
</swiper-container> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good Day Ladies and Gentleman,
i'm using NextJS und Hooks and I'm trying to hide the navigation arrows if the active slide is the first or the last item in the array.
i read that there is a disabledClass and a hiddenClass but i'm not sure how to use them correctly
i'd really appreciate any advice
regards Ben
Beta Was this translation helpful? Give feedback.
All reactions