how to use fx for transitions