Is it possible to make views_nivo_slider adaptive?

It can be made responsive through css and removing a js function https://drupal.org/node/2112921

It needs to be adaptive, especially as using it implies loading a great many images.

Currently it does not even apply the settings correctly when setting the image format to picture (in contrast to the post https://drupal.org/node/2147551). From my experience, if one sets the formatter to picture, no matter what one sets the breakpoint group to it always defaults to the default image size. Which means that setting the image format to image is of greater use.

The workaround I have for it currently is to create various blocks each with an image formatter that utilises as different image preset, and then to switch these block out using context and context_mobile_detect.

Comments

Thomas Schuh’s picture

Thanks for pointing out this workaround.

The Context Breakpoint project could be another candidate to workaround this issue. Worked fine for me.

candelas’s picture

Hello

I was able to make it work as I explain in #2147551: [solved] responsive images with breakpoint and picture modules working. There I was using Picture 7.x-1.5 but now they have updated to Picture 7.x-2.x and the 1 branch is deprecated and it doesn't work because they introduce the <picture> tag that before was <span>.

candelas’s picture

I forgot to say that I was using Nivo Slider library 2.7
You can see it working in http://euro-glashaus.com
So, until other client ask for a slider I will keep with Picture 7.x-1.5 or I have some time to investigate.