Replace CustomAnimationEffects with EffectCallbacks

#534