Adding a post function to transitions