Open hondatron90 opened 1 year ago
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.
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!