Workshop › Memory › Step 23 of 25
draw now looks at flip instead of faceUp: the face shows from flip >= 0.5, the back before. A card now shows
its face a few frames after the click.
```js
if (card.flip >= 0.5) {
```flip reaches 0.5 after 5 frames, so the face appears a moment after the click, and the back returns a moment after
a card is hidden.In draw, change if (card.faceUp) to if (card.flip >= 0.5).
Skills: Game states
← A number that follows Animate the turn →