sadasd


var i = 1;
var interval = setInterval( increment, 4000);
var headertext = "I am"
    
function increment(){
        i = i + 1;
        if(i>6) {i = 1;}
        
          //if(i==1){headertext = "I am a"}
          if(i==1){headertext = "Web Designer"}
          if(i==2){headertext = "Front End Dev"}
          if(i==3){headertext = "Interactivity Specalist"}
          if(i==4){headertext = "Lover of Pixels"}
          if(i==5){headertext = "Bit of a geek"}
          if(i==6){headertext = "Fluffy Animal Fan"}

          $('.tochange').animate({'opacity': 0}, 1000, function () {
          $('.tochange').text(headertext);
         }).animate({'opacity': 1}, 1000);

}    

Leave a Reply