Added transform snippet, and cleaned up the transition snippet