Play animation when going to another widget

It’s a pretty simple question that I can’t seem to figure out. I want to have an animation/video play when transitioning into another widget. For example, the Strategy Game template that Epic has created. I have a .mp4 file of the video/animation I would like to play. How would I do this type of thing?