Skip to content
react-cards-opening

Flash

The flash is the loudest thing in the library and the shortest. When a legendary turns over, the whole screen lights up in its colour for a twelfth of a second and fades over the next one.

Press the card. The flash is on the first frame of the turn.

When it plays

Only tiers whose effect is legendary get it, and nobody with reduced motion.

How it is built

It is a radial gradient over the whole overlay, from the tier's colour mixed with white at the centre to nothing at three quarters out. It reaches 0.9 opacity in 0.08 seconds and fades over a full second.

A hunt has a second, smaller flash: when the scan finds a loud card, the panel around the grid flashes to 0.7 as the cell cracks and the grid shakes for a quarter of a second. Both are skipped with reduced motion.

What changes it

  • The overlay's flash belongs to tiers whose effect is legendary.
  • The panel's flash belongs to loud and legendary tiers. showFor(effect).jolt says whether it plays.

Last updated . Read this page as Markdown.