Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

how to add class after fancybox-container? #2661

Open
hondatron90 opened this issue Dec 16, 2022 · 1 comment
Open

how to add class after fancybox-container? #2661

hondatron90 opened this issue Dec 16, 2022 · 1 comment

Comments

@hondatron90
Copy link

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!

@fancyapps
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants