Animated background

Dear colleagues. How to make february background in the form of chemical formulas and molecules that move by themselves, so that you can superimpose divine blocks, texts, pictures and more. Do I understand correctly that such complex animation is done in cinema 4D or After effects? and then through Lottie we set as the background? help me please