S
S
sashabeep2020-03-04 19:20:14
JavaScript
sashabeep, 2020-03-04 19:20:14

What scripts for modals are currently popular?

Puzzled looking for a modal window script replacement. Now I use Lightcase but it died a little and has not been updated for a long time and there are already a couple of complaints about the styles and how it works in some situations.

What to display:

  • Pictures - one by one, in a list, slideshow, with and without previews
  • Optional - with the ability to zoom inside the window
  • Arbitrary iframe size, video from hosting
  • Content with ajax loading, submitting the form from the window to it
  • Content from the hidden layer

Technical wishes:
  • Jquery 3 and up or vanilla - doesn't really matter as long as it's well written. Swiper, for example, is perfectly initialized from jQuery
  • Minimum resources, ideally 1 JS and 1 CSS file and a simple style of the window itself
  • In the active phase of development, there is documentation
  • The presence of a sufficient number of callback events and built-in functions such as resizing after loading, external control
  • Sane adaptive

The presence of skins is unprincipled.
For example, I liked the new version of Fresco (it used to be paid), but it only has media data display.
Fancybox, Colorbox, Magnific Popup and other fossils I have already watched

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaliy Pershin, 2020-03-04
@Get-Web

Recently I came across a project with a large number of modal windows with different styles and different behavior. I decided to use Fancybox and in general I really liked it, everything that you wrote is there, flexible in settings, easy to style without a bunch of overrides, or rather, just create your own windows and put them in Fancybox, there were some difficulties, but everything can be solved. The documentation is good, but I would like more detailed examples, maybe I’ll write a cheat sheet for myself, since I won’t cry with Fancybox in the near future.
I have used both Colorbox and Magnific Popup, but compared to Fancybox they are weak. Unfortunately, I am not familiar with Fresco.

A
Alex, 2020-03-04
@Kozack

In general, the specification has dialog . But browser support is still somehow not very good. But there is a polyfill

A
Anton Shamanov, 2020-03-04
@SilenceOfWinter

fashionable ... his complaints are open source, baby - go and help. There is nothing more popular than bootstrap.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question