While watching Google IO17, I learnt about the double requestAnimationFrame method but i can\'t really wrap my head around it maybe because i hardly involve myself in animat
Because of the bug introduced in Chrome and some others, we have to use double requestAnimationFrame whenever we find ourselves toggling classes or performing other CSS animations that requires RAF to fire after an action is performed. It's kinda like an escape hatch to have nice/smooth animation.