You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
Day 27 - Portfolio
Exercise:Solutions
Home | << Day 26 | Day 28 >>
Exercise Level 1
- Create the following using HTML, CSS, and JavaScript

//app.js
const animation = document.getElementById("footer")
const header = document.getElementById("header")
const headerWords=["Motivaional Speaker","Programmer", "Educator","Content Creator","Motivator","Instructer"]
const footerWords = ["HTML", "CSS", "JavaScript", "React"];
let i = 0; // bu değişkeni genel olarak tanımlamak gerekiyor
function typeWord() {
if (i < footerWords.length) {
let currentWord = footerWords[i];
animation.innerHTML ="The tecnologies I teach " + `<span>${currentWord}</span>`
setTimeout(typeWord, 2000)
i++
} else {
i = 0;
typeWord();
}
}
typeWord();
function headerAnimation(){
if(i<headerWords.length){
let currentWord=headerWords[i]
header.innerHTML=currentWord
i++
setTimeout(headerAnimation,2000)
}
else{
i=0
headerAnimation()
}
}
headerAnimation()