nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.58k stars 9.75k forks source link

Swiper Custom Transition rotate issue #3610

Closed simonerama closed 3 years ago

simonerama commented 4 years ago

Hello people! I'm trying to create a custom slide transitions with TweenMax, what I'd like to get is assign +10deg to prev and next slide and -2deg to the active slide.

I've activate watchSlidesProgress: true to manage a progressive animation during drag/scroll, I've also activate loop: true and centeredSlides: true.

This it my code the first problem is that when loop restart probably it will reset rotate value, the other is that 20 * Math.abs(slideProgress) is not the correct value in deg that I want, how can I assign it based on class name prev, next and active?

Thank you

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.