ロケーションバーでアニメーションする

ロケーションバーでアニメーションするのをtwitterで見かけて、いいなと思ったのでやってみる。 (() => { let chars = ["🌕", "🌖", "🌗", "🌘", "🌑", "🌒", "🌓", "🌔"]; setInterval(() => { history.replaceState({}, '', location.pathname+location.search+'#'+chars[0]); chars.push(chars.shift()); }, 100); })(); <script> (() => { let …