Framework for animation