edited eventBasedAnimationClass