Create eventBasedAnimationClass