Skip to content

custom arrows in fancyapp v4? #51

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

You must be logged in to vote

Hi,

Excellent question! You see, the latest generation Fancybox is very unique, it is a combination of 3 components - Fancybox, Carousel and Panzoom. Each has its own plugins. This architecture has many advantages and, once you get used to it, it is very easy to use. So the navigation arrows are actually created by the carousel plugin, and it can be customized as follows:

Fancybox.bind('[data-fancybox="gallery"]', {
  Carousel: {
    Navigation: {
      prevTpl: "<<",
      nextTpl: ">>",
    },
  },
});

Demo - https://fancyapps.com/playground/xh

Replies: 1 comment 1 reply

Comment options

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

Answer selected by steverethink
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