Created
November 13, 2019 21:21
-
-
Save fermoya/88b2b0fb870720c7c682d8bd29e6c74f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CardView(card: card) | |
.opacity(self.opacity(for: card)) | |
.offset(x: 0, | |
y: self.offset(for: card)) | |
.scaleEffect(self.scaleEffect(for: card)) | |
.rotation3DEffect(self.rotationAngle(for: card), | |
axis: (x: 0.5, y: 1, z: 0)) | |
// 1 | |
.transition(.moveUpWardsWhileFadingIn) | |
// 2 | |
.animation(Animation.easeOut.delay(self.transitionDelay(card: card))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment