fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

how to add class after fancybox-container?

Open hondatron90 opened this issue 2 years ago • 1 comments

I want to add a class after div.fancybox-container for example: fancybox-photo-viewer-mh <div class="fancybox-container fancybox-photo-viewer-mh fancybox-show-toolbar fancybox-show-caption fancybox-show-nav fancybox-is-open fancybox-is-zoomable fancybox-can-zoomIn" role="dialog" tabindex="-1" id="fancybox-container-2" style="transition-duration: 366ms;"> I used the .addclass method but it didn't work. Can anyone help me!

hondatron90 avatar Dec 16 '22 14:12 hondatron90

Hi,

Have you tried using mainClass option? Also, you can use any callback to do whatever you need. Every callback receives first parameter as reference to the current instance. And you can use it to access various DOM elements.

fancyapps avatar Dec 17 '22 11:12 fancyapps