Take a look at this grid dance animation we made in HTML & CSS. You can edit the variables to change the way it looks & moves. You can copy the code & do whatever you want with it.
Animated customizable HTML & CSS grids that are easy to generate different loops. Attach the animation of your choice.