Flipping HTML elements to show a loading indicator easily