@fazzaamiarso
Posted
Hello Paul! Nice solution!
To add delay you can use setTimeout
. Please refer to this resource
setTimeout( () => {
if (star.textContent.length === 0) {
star.textContent = '0';
thankYouPage.style.display = 'grid';
welcomeSection.style.display = 'none';
} else {
thankYouPage.style.display = 'grid';
welcomeSection.style.display = 'none';
}
}, 3000) //3000 is the delay in milliseconds
Hope it helps! Cheers!
Marked as helpful
@SageKyle
Posted
@fazzaamiarso Thanks a lot, this is really helpful. I'll definitely try it out.