A small detail on a website I came across that I found interesting was a marquee effect on the html `title`.
Thought it was a fun feature to implement on my own site and make it stand out a bit from the rest of the tabs open.let titleText = " This is a scrolling title effect... ";
function scrollTitle() { // Move the first character to the end of the string titleText = titleText.substring(1) + titleText.substring(0, 1); document.title = titleText; // Set the speed (200ms = 5 updates per second)setTimeout(scrollTitle, 200); } // Start the animation scrollTitle();
Site may take a small performance hit, but what the heck.
2 min read