Implemented background animation logic

The new logic will create the background animation with the parameters
got from a json file.