Added pre- and post-animation hooks for subclass usage.