0

I am looking for a way to change the data-attributes according to the resolution, for example, use a smaller data-min-height for smaller resolutions.

How can this be achieved? Thanks for your time!

scooterlord
  • 15,124
  • 11
  • 49
  • 68

2 Answers2

1

try with this function setOptions

fotorama.setOptions({
  nav: false,
  arrows: false
});

Here you can see a example how use the api Move fotorama arrows outside stage

Community
  • 1
  • 1
0

You can use .data() along with $(document).height() or $(window).height():

 $('selector').data('min-height',$(document).height());
Milind Anantwar
  • 81,290
  • 25
  • 94
  • 125