Bank Card Flip

Bank Card Flip

A payment card you can pick up: drag to tilt it in 3D with a holographic foil sheen and real edge thickness, flick or tap to flip it to the CVV side, and hold to peek as the number decodes digit by digit. Haptics, VoiceOver and Reduce Motion support included.

Luiz Mello
  • card
  • animation
  • gesture

snippet.swift845 lines

10 files • Scroll to see all →
//// A payment card you can actually pick up.//// - Drag to turn it in 3D: horizontal drag spins it, vertical drag tilts it,//   and it springs back when you let go.// - Flick it (or tap a side) to flip. It lands with a rigid "thunk" haptic.// - Hold still for a moment to peek: the number and CVV decode digit by digit.// - A holographic foil and a specular glare track the angle of the card,//   and a real edge (thickness) shows up when it turns side-on.//// The 3D is a custom projection (perspective + yaw + pitch + depth), so the// two faces and the edge layers sit at different depths of the same slab.
Viewing: BankCardFlip.swift•1 of 10