Now that we've covered the basic image functionality for Fancybox, let's load a video from YouTube. Fancybox makes it easy to load any YouTube video in a pop-up window.
To start things off, we need to find a video we want to display. Go to YouTube and pick any video you like. We need to find the embed URL that YouTube provides.
On the YouTube page, for the video you want to use, click on the Share tab as shown in the following screenshot:
Next, click on the Embed link. A box will show up with some HTML code for an
iframe tag as shown in the following screenshot:
iframe. This ...