I am planning to have a warning system built into my game. Links implying difficult or risky actions will be tagged with the "defiant" class and will shake when clicked. They also have to be clicked multiple times for the story to continue.
How can I set up the shake animation with pure CSS? I tried using keyframes and <<linkreplace>> but the second link replaces the first before the animation is visible.