I love the simplicity of the loading screen design for one of my favourite games Rocket League. So why not create a codepen dedicated to the screen itself?
See the Pen Rocket League Loading Screen by Jack Davies (@JackDavies) on CodePen
Even though this codepen looks simple enough, it did take me quite a while to figure out how I was going to create it and then pick out the perfect font. Imagery is courtesy of /r/RocketLeague and their amazing wallpaper packs!
I first started out by trying to figure out a smart way of using the pseudo selectors
:after to create the loading icon out of HTML elements. After faffing around studying other CSS loaders and the concepts behind them, I soon realised creating this warped three-point object would be next to impossible.
Sticking to how it should be done.
So after using half an hour of my time studying the cool and hip way of creating a CSS loader, I turned to my good old friend SVG (cue puppy love music). SVG allowed for the process to be quicker (not simple) and therefore save me time, with the sacrifice of being trendy like other CSS loader developers.
With the object constructed I then exported the file as an SVG from Illustrator and loaded it into SVGOMG. With the image compressed and code copied, I headed over to my codepen and started piecing together the parts. The animation was easy enough, I even included cross-browser support for those wanting to copy and paste the code.
Although it should have taken me an hour, I ended up throwing on an extra half hour trying to pick out a good image for contrast with white text, picking out the most similar font to that of the loading screen font and finally making this post sharing my creation with the world.
The main lesson I learnt from this codepen was that even though everyone is trying to show off creating non-semantically correct code to show off what you can do with divs nested in 6 other divs, sometimes it’s just easier to do it the way it’s meant to be done. Food for thought?