I'm building a website and I want to implement a CSS loading animation in it.
(such as this one: http://codepen.io/hone/pen/Hhjuk)
Whatever animation I choose to use, it'll be one that consistently plays until the rest of the page loads.
How do I get the animation to begin playing once it loads and continue playing until the rest of the page loads?
I've researched this but I can only find tips on how to make a specific element fade in and out until the page loads.