Using different data-attribute values for different resolutions in the fotorama plugin

StackOverflow https://stackoverflow.com/questions/22963380

  •  30-06-2023
  •  | 
  •  

Pregunta

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!

¿Fue útil?

Solución 2

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

 $('selector').data('min-height',$(document).height());

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top