Using reflow triggering to fix bugs with animations