You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have different ratio images, but our UI design wants a neat thumb display, with loading status each of them, and first six of them.
So instead of img tag, I choose div with backgroundImage and backgroundSize.
But neither with Separate DOM and data nor Dynamically generated data in https://photoswipe.com/data-sources/ can gives a good transition, both have a black screen first then the image.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have different ratio images, but our UI design wants a neat thumb display, with loading status each of them, and first six of them.
So instead of
img
tag, I choosediv
with backgroundImage and backgroundSize.But neither with
Separate DOM and data
norDynamically generated data
in https://photoswipe.com/data-sources/ can gives a good transition, both have a black screen first then the image.Am I missed something here and any suggestion?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions