After spending a considerable amount of time learning how to use fancybox2 to showcase Youtube videos and slide shows, I now find myself faced with V3. As someone who is not well-versed in coding, I am wondering if the code I have been using needs to be updated, especially since it seems like only three files are needed: js, css, and jquery.
The script I am currently using is as follows:
// fancybox for youtube
$(".youtube").fancybox({
type: 'iframe',
maxWidth: 853,
maxHeight: 480,
padding: 0,
openEffect: 'elastic',
openSpeed: 250,
closeEffect: 'elastic',
closeSpeed: 150,
closeClick: true,
closeBtn: true,
iframe: {
preload: false // fixes issue with iframe and IE
},
helpers: {
overlay: {
css: { 'background': 'rgba(80, 163, 130, 0.9)'
}
}
}
});
I customized the color and opacity of the overlay to match my website's design. However, I have heard that this may have changed in version 3. Unfortunately, I have been unable to find any documentation on this matter. The HTML calling the script looks like this:
<a class="youtube" href="https://www.youtube.com/embed/U6vutH_9e_0?rel=0&fs=1&autoplay=0" frameborder="0" allowfullscreen></a>