[Bugfix] move custom events to animation callback

refs #1