How can I add a frame around image-slides in fancyBox 3?
Currently, I've tried with the following:
<style>
.fancybox-placeholder {
padding: 40px;
background: #fff;
}
.fancybox-image {
position: static;
}
</style>
<a href="img.jpg" data-fancybox><img src="thumb.jpg"></a>
This works when looking at and navigating between the slides, but it does not look good during the open/close transition of the fancyBox.
You can see it in action on this CodePen.
Is there a better way to create the frame in fancyBox 3, so it looks good while opening and closing the slide/gallery as well? I was not able to find any information on this in the documentation.