AndreiMisiukevich / CardView

CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
MIT License
710 stars 114 forks source link

Question: Changing opacity behavior for CardsView #330

Closed robertmiles3 closed 4 years ago

robertmiles3 commented 4 years ago

First, thanks for the work! It's a great control.

I would like to change the behavior a bit such that when using CardsView, the card doesn't fade the opacity but instead just moves it off screen. Similar to this in Quizlet...

Feb-05-2020 10-28-31

Would this be possible by altering the processor somehow?

AndreiMisiukevich commented 4 years ago

Hi @robertmiles3 This is a good question. And yes, it's possible by writing custom processor

AndreiMisiukevich commented 4 years ago

https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseCardBackViewProcessor.cs https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseCardFrontViewProcessor.cs

Need to extend these two classes and write custom logic: 1) Remove all Opacity occurrences 2) Shift card outsides instead of fading

Feel free to ask questions