Guest User

Untitled

a guest
Dec 14th, 2020
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. $(document).ready(function(){
  3.     var token = 'Phenomenal';
  4.     var words = [token, "Interactive", "Professional"];
  5.  
  6.     var old_content = $(".text_swap_holder").html();
  7.     var new_content = old_content.replace(token, "<span class='text_swap'></span>");
  8.     $(".text_swap_holder").html(new_content);
  9.  
  10.     function rotateTerm() {
  11.         var ct = $('.text_swap').data("term") || 0;
  12.         $('.text_swap').data("term", ct == words.length -1 ? 0 : ct + 1).text(words[ct]).fadeIn().delay(2000).fadeOut(200, rotateTerm);
  13.     }
  14.  
  15.     rotateTerm();
  16. });
  17. </script>
RAW Paste Data