Manually animating slide width #7124
Unanswered
JakeAdmire
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm attempting to match a design which requires I animate slide widths while swiping. I've set this up using GSAP within the
setTranslate
event and am adjusting the slide widths by looping through and basing the value off ofslide.progress
, but that comes with a few bugs such as theslide.progress
value being incorrect at times as well as the slider becoming off center.I'm assuming this is because I'm adjusting the widths after Swiper runs it's calculations of those values.
Is there a different event that I should be running these animations off of? Or is there a method I should be calling for cleanup? I've played around w/ calling
Swiper.update()
but this has caused an infinite loop.Any help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions