D
D
DotDash2018-08-08 16:44:22
JavaScript
DotDash, 2018-08-08 16:44:22

How to create multiple fancybox 3 modals with different styles?

Good,
several modal windows with different designs should be displayed on the site, I display them through fancybox 3, but changing styles can only be done at once by everyone.
I don’t understand how to set styles for each pop-up window, because they are added to the end of the general document.
I tried to add wrapCSS, but the parameter does not add classes, maybe I’m connecting it wrong, of course.
Tell me how to be, who has experience in solving this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DotDash, 2018-08-08
@DotDash

In short, I figured it out.
wrapCSS is gone, baseClass can be used instead, there is also slideClass for slides and baseTpl to create a static template.

N
Nikita, 2018-08-08
@Rema1ns

I still don’t understand what the problem is) funsybox usually just displays the contents of some window in its container, which prevents you from adding different classes - modifiers of this window and completing it through them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question