A Pen by Agustin Chavez

Thumbnail
This awesome code was written by agustinchavez, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright agustinchavez ©
  • HTML
  • CSS
  • JavaScript
    <div id= "team_members">
  
  <button onclick="setTimeout(timerFunction, 3000);">Try it</button>
</div>

/*Downloaded from https://www.codeseek.co/agustinchavez/a-pen-by-agustin-chavez-KrOEym */
    #team_members {
  background-color: red;
  border: 2px solid black;
  width: 42%;
  height: 100px;
}


/*Downloaded from https://www.codeseek.co/agustinchavez/a-pen-by-agustin-chavez-KrOEym */
    $(document).ready(function(){
  
var team = ["Michael", "Shakeem", "Ostap", "Greg"];

function timerFunction() {
   $.each(team, function (index, value) {
    $(".team_members").html(team[index]);
  
  });
};


});

Comments