Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Add and remove elements repeatedly Reply To: Add and remove elements repeatedly

#170845
Paulie_D
Member

I want to create the ‘div’ elements and them remove repeatedly to sort of create an animation of divs randomly changing colors.

Not sure that removing them from the DOM and adding them back just to change the background is the best option here.