Based on the codepen, what i'm planning to do is sort of a typing game where the user types and any word that matches the input will be removed from DOM or when any word has reached the end of the container, then stop the stagger animation altogether.
So the checking of condition would probably be invoked on every keypress.