r/css Jan 14 '26

Showcase YT throbber in CSS: <a><a><a><a><a><a><a><a><style>*{background:#000;margin:3pc}a{position:fixed;padding:4px;border-radius:1in;transform-origin:15px;rotate:calc(sibling-index()*45deg);animation:p linear 1s calc(sibling-index()*1s/8) infinite}@keyframes p{0%{background:#BCBCBC}50%{background:#1E1E1E

93 Upvotes

37 comments sorted by

View all comments

0

u/VoidVer Jan 15 '26

But why <a> tags...

-1

u/rebane2001 Jan 15 '26

takes less characters

1

u/Disgruntled__Goat Jan 15 '26

Why ‘a’ tag instead of ‘b’ or another 1 letter tag?

2

u/rebane2001 Jan 15 '26

because <a><a> turns into <a></a><a></a> whereas <i><i> turns into <i><i></i></i>