JoniVR / VerticalCardSwiper

A marriage between the Shazam Discover UI and Tinder, built with UICollectionView in Swift.
MIT License
1.4k stars 101 forks source link

Can I off the animation when the previous card goes behind? #44

Closed jinios closed 5 years ago

jinios commented 5 years ago

New Issue Checklist

Issue Description

Can I off the animation when the previous card goes behind?

I tried to find an option so that I can on/off the scale&fade animation when the cards goes behind but I couldn't. So I triedn to comment out the codes regards animation and changing scale in the file CardCell.swift, but it seems disable animation is not working. I commented out the logic in the function named resetToCenterPosition(), and animateCard(angle:, horizontalTranslation:)

Please point out if anything wrong, or anything that I missed.

Environment

JoniVR commented 5 years ago

Do you mean this? example

JoniVR commented 5 years ago

If that is what you mean, try:

/// The transform animation that is shown on the top card when scrolling through the cards. Default is 0.05.
cardSwiper.firstItemTransform = 0.00

As described in the properties section of the readme.

Best regards, Joni

jinios commented 5 years ago

Thanks a lot, I read it but I couldn't notice that was an enable/disable property for the previous card fading animation. I appreciate you develop this library and also your quick feedback.
I will close this issue :)

Regards, Mijin