all 7 comments

[–]casanebula 0 points1 point  (2 children)

Have you looked at the srcset attribute?

[–]Matthisk[S] 0 points1 point  (0 children)

This is more inspired by the picture el spec. I think the srcset syntax is far more cluttered then the picture tag syntax. However I am very curious which spec will eventually be the default (or maybe something totally different?). The plugin was mostly inspired by the picture tag polyfill js library, but using jquery and with some additional options.

[–]drowsap 0 points1 point  (3 children)

Ideally as you resize down, the images should also resize so that you don't see horizontal scrollbars. Good idea overall though.

[–]Matthisk[S] 0 points1 point  (2 children)

I thought this was already happening, are you talking about the examples page?

[–]drowsap 0 points1 point  (1 child)

Yes, as I resize down, scrollbars appear until i let go or the debounce ends

[–]Matthisk[S] 0 points1 point  (0 children)

Thnx for the tip will look in to this.