I can think of a few advantages, the primary one being you do not need expertise in making graphic files to build this.
And once it is set up, it can be tweaked really easily from within the text editor you are already using for the rest of the project rather than having to jump out into Photoshop/Illustrator or ask the designer for a new asset.