How to make fade/the emergence of video?


Please tell me how to do fade and the appearance of video when changing the url?
He made an example of click the link

I tried using fadeOut, fadeIn, didn't work

UPD: doper, now works as expected 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
It is not necessary to mix pure JS and jQuery. - 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