nodeCardGlow

fun Modifier.nodeCardGlow(lastHeard: Int, nodeColor: Color): Modifier(source)

A modifier that applies a glow animation to a node card when a packet is received.

The glow blooms quickly using MaterialTheme.motionScheme.fastEffectsSpec and decays slowly using MaterialTheme.motionScheme.slowEffectsSpec, effects specs because it animates alpha and does not overshoot.

Parameters

lastHeard

The node's lastHeard timestamp. Changes trigger the glow animation.

nodeColor

The color used for the glow shadow (typically the node's assigned color).