Classic thumbnails using Programmatic code #577
Answered
by
fancyapps
mattie2dope
asked this question in
Q&A
-
Hi, const options = { in pretty much every possible location but it either breaks it or doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
fancyapps
Oct 22, 2023
Replies: 1 comment 1 reply
-
Hi, First, include corresponding JS and CSS files, then apply gallery options, like this: Fancybox.show([
{
src: "https://www.youtube.com/watch?v=z2X2HaTvkl8",
thumb: "http://i3.ytimg.com/vi/z2X2HaTvkl8/hqdefault.jpg",
},
{
src: "https://www.youtube.com/watch?v=dZRqB0JLizw",
thumb: "http://i3.ytimg.com/vi/dZRqB0JLizw/hqdefault.jpg",
},
{
src: "https://vimeo.com/259411563",
thumb: "https://f.vimeocdn.com/images_v6/lohp/video1_thumbnail.png",
},
],{
Thumbs: {
type: "classic",
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mattie2dope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
First, include corresponding JS and CSS files, then apply gallery options, like this:
https://jsfiddle.net/wsvz57pr/