copied Inspired by this gorgeous tutorial from Dev Ed.
The calculated styles are appended to a <style>
tag so I can copy the styles from the generated DOM and use it in the definitive site, and avoiding unnecessary JS code each time the site is loaded.
View it in action:
https://rubenvillarnet.github.io/Pixel-in-love-animated-logo/. https://pixelinlove.net/.