Swiper: How can I disable bounce effect while swiping from screen's left and right side?

Created on 20 Nov 2014  路  10Comments  路  Source: nolimits4web/swiper

How can I disable bounce effect while swiping, if slide is first or last pls help!

Most helpful comment

Solved:

  • resistance : true
  • resistanceRatio : 0

All 10 comments

There is a resistance parameter for that. Set it to false

So, this parameter work with normal swiper & latest version.

@nolimits4web I tried with below code but its no working?

var mySwiper = new Swiper('.swiper-container',{
pagination: '.pagination',
grabCursor: true,
paginationClickable: true,
resistance : false
});

@ nolimits4web
I tried at code pen also, but swiper elastic bounce is still working.

http://codepen.io/anon/pen/VYYyPd

Sorry, resistance: '100%'

It's OK, but thank's for help.

It doesn't work for Swiper 3, why?

Ref: https://github.com/nolimits4web/Swiper/issues/1698 .

Solved:

  • resistance : true
  • resistanceRatio : 0

Thank you DareDevil73!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chansecampbell picture chansecampbell  路  3Comments

nicolebo picture nicolebo  路  3Comments

aeblin picture aeblin  路  3Comments

joakimk picture joakimk  路  3Comments

RyanGosden picture RyanGosden  路  3Comments