Fade-in and fade-out multiple objects on homepage

You will need this one…

setTimeout(()=>{        },500) 

Put your code between the 2-curly brakets, which should have a delay of 5-secs.

5-secs = 500 milli-secs