Hello GameLuffy, thank you for posting and welcome to the Unreal community.
The effect you are attempting sounds very neat-o.
I did find a relevant thread you might be interested in checking out. It involves transitioning materials with layered shaders.
I hope this helps.