A
A
Alexey2021-09-09 00:48:56
JavaScript
Alexey, 2021-09-09 00:48:56

How to display photos on a page in a modal window?

Hello dear experts. I have a question. There is a Wysiwyg editor on the site where users can embed photos. The problem is that then these photos remain static on the page, but the task is to make it so that when you click on the photo, it opens in a modal window.

Prompt libraries that can force img class bases to open in a modal window. Thank you very much. PS - Google didn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2021-09-09
@ThunderCat

almost all plugins of this type support selectors, like ".news-wrapper img". FancyBox definitely knows how.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question