[Bugfix] move custom events to animation callback

refs #3