const names = [];
names.push("You Can Make Up To $2,047.50 Every Month Without Selling or Recruiting...") ;
names.push("630k Members Already Pre-Enrolled...") ;
names.push("Start Earning Commissions Even As Soon As Tonight...") ;
names.push("It's Easy To Get Started, Just Enter Your Email.") ;
names.push("This Opportunity Is Available WorldWide.") ;
names.push("Secret Traffic Training Provided Inside. Register Now!") ;
names.push("This System Is Easy To Use And It's Beginner Friendly.") ;
let bubble__wrapper = document.querySelector( '#bubble__wrapper' );
bubble__wrapper.innerHTML = "
"
let before__text = document.querySelector( '#before__text' );
let the__name = document.querySelector( '#the__name' );
let after__text = document.querySelector( '#after__text' );
let icon = document.querySelector( "#icon_path" );
icon.style.fill="#e67e22";
document.querySelector( "#bubble__circle" ).style.borderLeftColor="#1674ea"
let i = 0;
let randomized = Math.ceil( Math.random() * names.length );
const rotation = setInterval(() => {
the__name.innerHTML = names[ i ];
bubble__wrapper.classList.add( 'open' );
setTimeout(() => {
bubble__wrapper.classList.remove( 'open' );
}, 4000 );
i++;
if( i >= names.length ){
clearInterval( rotation ) ;
}
}, 9000 );