Skip to content

Instantly share code, notes, and snippets.

@fermoya
Created November 13, 2019 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermoya/88b2b0fb870720c7c682d8bd29e6c74f to your computer and use it in GitHub Desktop.
Save fermoya/88b2b0fb870720c7c682d8bd29e6c74f to your computer and use it in GitHub Desktop.
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