api to scroll to bottom or top? #4562
-
Using a scroll container, Is there a method to in the api to go to the bottom or top of the page? |
Beta Was this translation helpful? Give feedback.
Answered by
ajaypillay
May 16, 2021
Replies: 2 comments 2 replies
-
for forcing to the bottom I did this: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there any reason you couldn't do |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bsc0tt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any reason you couldn't do
swiper.slideTo(0)
andswiper.slideTo(array.length - 1)
orswiper.slideTo(lastIndex)
. If you keep track of the number of slides within your Swiper then this could be done.