piruicy
The collection

Invite code

after Nitish Khagwal

An invite card that flips up on its top edge into a leaning heading, revealing the code beneath.

LoveSwiftUI

 

Details

  • One angle turns both faces: the card on its top edge, the heading on a line 3.96px lower, through a 392.8px perspective centred on each hinge.
  • Opening is a spring of response 0.74s and damping 0.46 toward 210°: it swings to 252°, back to 202° and settles leaning back. Closing is response 0.43s, damping 0.71, and dips 6° past flat.
  • The shadow is cast by the lift: offset and blur grow half and nine-twentieths as fast as the bottom edge rises, and it fades out as the card leans back onto the ground.
  • Every length is the recording's in points; the code card shows once the card passes 45°, and a press anywhere else, or Escape, puts it back.

© 2026 Dhaval Khandhadia. Use it in anything you build; don’t resell it. MIT with the Commons Clause.