BakerJQ / Android-InfiniteCards

An infinite card switching UI for Android, support custom animation 自定义实现神奇动效的卡片切换视图
Apache License 2.0
1.73k stars 204 forks source link

Is it possible for the cards to be angled by default? #10

Closed Androneilz closed 7 years ago

Androneilz commented 7 years ago

Apologies that this isn't an issue, but maybe you can advise how this can be done.

Do you think it's possible to have the cards angled slightly by default, as they appear in this example:

https://uimovement.com/ui/3782/credit-card/

Thanks for looking.

BakerJQ commented 7 years ago

Yes it's possible, just set the rotateX value.

Androneilz commented 7 years ago

Thank you! After some experimentation that has worked perfectly.

One final question. Bearing in mind my cards are now angled slightly, with padding around them, I'd like to create an additional animation to which moves the card at the front of the stack to a full width, flat position. Please see screenshots for examples of the start and finish positions. I'd also want to reverse the animation to return the selected card back into the angled stack.

Is this something you are able to help with?

device-2017-10-08-162345

device-2017-10-08-162431

BakerJQ commented 7 years ago

maybe you'll need to rewrite the other transformers too

Androneilz commented 7 years ago

Yes, I think I've achieved what I wanted. Thanks again for the great library!

BakerJQ commented 7 years ago

My pleasure :)