restructured animation system: each layer can now choose an animation mode independently