S
S
SlimSavernake2017-10-22 15:04:03
JavaScript
SlimSavernake, 2017-10-22 15:04:03

How to dynamically upload photos in fancybox 3?

fancybox displays the photos that are currently on the page. but I want to scroll through thousands of photos in the gallery. Do not load them on the page right away. Therefore, I want to download one at a time when flipping through each photo dforward or backward.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fudo Tsukiko, 2017-10-22
@FudoTsu

write a script that, when scrolling, will take the height of the browser window, and take all the pictures. and do a check (if the height of the picture is the same as scroll.top, or less, then we load ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question