How to make fade/the emergence of video?

Hi.

Please tell me how to do fade and the appearance of video when changing the url?
He made an example of https://jsfiddle.net/Lwnf6cqh/ click the link

I tried using fadeOut, fadeIn, didn't work

UPD: doper, now works as expected https://jsfiddle.net/ts31yue2/1/ but it is interesting how this is the right code? I would be grateful if you show me how.
July 9th 19 at 11:07
3 answers
July 9th 19 at 11:09
Solution
It is not necessary to mix pure JS and jQuery.

https://jsfiddle.net/ts31yue2/2/ - here is a more competent option, there are dozens of different ways )
thank you very much - Rodger.MacGyver commented on July 9th 19 at 11:12
July 9th 19 at 11:11
July 9th 19 at 11:13
So as not to fence anything, you need to place some div over the video with the background color. That's it, and animate.

Find more questions by tags AnimationjQueryJavaScriptHTML