Add a new animation

def register_animation(self, animation_class):
        """Add a new animation"""
        self.state.animationClasses.append(animation_class)
        return len(self.state.animationClasses) - 1