They aren’t using Photoshop they’re using Adobe Aftereffects, which I don’t use/have knowledge about. There is a video on YouTube that might help you here:
I’m guessing that you create the typography motion graphic on a black background, so when you export it you can just import it to photoshop and place it’s layers on screen, which then makes it transparent over a gif.