Every word scores every word it may see, turns the scores into weights with softmax, and takes a weighted blend of their values: the heart of a transformer.
This interactive visualization needs JavaScript.