Advertisement
powylv

marquee tab title

Jul 10th, 2022 (edited)
688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <!--you add the title directly in carrd-->
  2.  
  3. <script type="text/javascript">
  4. const speed = 100;
  5. const endChar = ".. ️️ ️️️️️️️";
  6. let pos = 0;
  7. let msg = document.title;
  8. setInterval(() => {
  9. document.title = `${msg.slice(pos)}${endChar}${msg.slice(0, pos)}`;
  10. pos = (pos + 1) % msg.length;
  11. }, speed);
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement