adds functional transitions when g elements are added in preparation for text additions