Skip to content

Classic thumbnails using Programmatic code #577

Answered by fancyapps
mattie2dope asked this question in Q&A
Discussion options

You must be logged in to vote

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",
  }
}); 

https://jsfiddle.net/wsvz57pr/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mattie2dope
Comment options

Answer selected by mattie2dope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants