For this animation I used the animation nodes "distribute instances on spline"-Template and animated the instances using a math node and wiggle node. I rendered the animation using cycles and freestyle.
you can download the blend file here
AN experiment - Boxes
AN experiment - delayed instanciation
AN experiment - distance
AN experiment - curling curves