Add animation mode setting
Implement animation basics & layer callbacks