Pass template name to animate function.