I previously did a script for moving one block in different directions. Purely for beauty. It has a center of movement and a radius beyond which it does not go out (it cannot go beyond the limits of the screen). Every second, another indent change occurs. In the center of the screen, the block holds the table . The script looks like this:
l=0; setInterval(function() { x=$(document).height()/8; y=$(document).width()/8; $(function () { $("#tm").animate({ marginTop: Math.floor(Math.random()*(x+x)-x), marginLeft: Math.floor(Math.random()*(y+y)-y) }, { duration: 1000, queue: false }); });}, 1000); Now I have a script that generates 200 divs, each has its own class, text, and position: relative; . The script generates margin-left, margin-right margins for each block in a random way to distribute them across the screen randomly.
Task: you need to make the script as above, just so that each element individually moves to the sides at different intervals, depending on the size of its text (the font-size is also generated by the script).
If anyone is really interested in what it is, here is a screenshot .