i found how to solve it...
you have to replace this code
`$(".fancybox-effects-d").fancybox({
padding: 0,
openEffect : 'elastic',
openSpeed : 250,
closeEffect : 'elastic',
closeSpeed : 500,
closeClick : true,
helpers : {
overlay : {speedOut : 0}
}
});
the important thing is that overlay: in helpers was overlay: none. you have to delete none and and this code {speedOut : 0}
and another important thing is that which script you must do that?. in the demo folder, in index.html file, script codes starts 28. line and ends 211. you have to find
// Remove padding, set opening and closing animations, close if clicked and disable overlay
$(".fancybox-effects-d").fancybox({
padding: 0,
openEffect : 'elastic',
openSpeed : 250,
closeEffect : 'elastic',
closeSpeed : 500,
closeClick : true,
helpers : {
overlay : {speedOut : 0}
}
});`
you have to find this area. and change setting of overlay to {speedOut : 0 }
.
after you apply this, you will see it works. you can also copy all script and create js file and connect it to your page. this makes it more simple.