Generates an animation + clean code