Hello there,
i have a problem using the lightslider plugin in my project. The slider should change it’s size depending on the viewport size of the browser. In the original jquery plugin I already found an option which might allow setting the height based on the width of the viewport here .
$(document).ready(function() {
$('#responsive').lightSlider({
item:4,
loop:false,
slideMove:2,
easing: 'cubic-bezier(0.25, 0, 0.25, 1)',
speed:600,
responsive : [
{
breakpoint:800,
settings: {
item:3,
slideMove:1,
slideMargin:6,
}
},
{
breakpoint:480,
settings: {
item:2,
slideMove:1
}
}
]
});
});
Is there any way of doing this in grav?
Best regards,
Michael Gollmer