setInterval(_=>{
icons.forEach(function(element, i){
setTimeout(function(){
element.style.color = 'white'
setTimeout(_=>{
element.style.color = 'green'
}, 400)
}, 240 * ++i)
});
}, icons.length*200 + 800)
componentDidMount() {
const icon = document.querySelectorAll('.icon-effect')
let current = 0
setInterval(() => {
current = (current + 1) % icon.length
icon[current].classList.toggle('active-icon')
}, 3000)
}