I am using the fancybox plugin version 2.0.6
I am trying to change the overlay opacity as detailed in the documentation, but can’t get it to work. Can anyone advise on how I might be doing this wrong.
Thanks.
Here’s what I have:
$(function () {
$(".fancybox")
.attr('rel', 'gallery')
.fancybox({
padding : 0,
margin : 0,
arrows: false,
closeBtn: false,
closeClick: true,
openEffect : 'none',
openSpeed : 100,
closeEffect : 'none',
closeSpeed : 100,
helpers : {
title : null,
speedIn: 0,
speedOut: 0,
opacity: 0.8,
}
});
});
Try the
helpersoption this way:EDIT (Sept 12, 2012) : The option
helpers =>overlay=>speedInhas been removed since fancybox v2.1. It’s still valid for v2.0.6 and below.