JoniVR / VerticalCardSwiper

A marriage between the Shazam Discover UI and Tinder, built with UICollectionView in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jinios opened this issue · comments

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

  • iOS Version: [12.1.4]
  • Device(s): [iPhoneX]
  • Xcode Version: [10.2.1]

Do you mean this?
example

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

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