Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

srcset support #67

Open
tyssen opened this issue Jun 25, 2015 · 4 comments
Open

srcset support #67

tyssen opened this issue Jun 25, 2015 · 4 comments

Comments

@tyssen
Copy link

tyssen commented Jun 25, 2015

Hi, would it be possible to have srcset support added for Ideal Image Slider?

Currently I'm setting the src as the smallest image and then using Picturefill to replace that with larger sizes set in the srcset attribute, but the slider script only uses the value set in the src which means the images get stretched on larger screens.

@wknowles
Copy link

if you check out the docs - particularly the "Getting Started" bit you can see that srcset can be specified by data-src-2x=. It works a dream!

@tyssen
Copy link
Author

tyssen commented Apr 17, 2016

That only covers 2x images though. Support seems lacking for markup like:

<img src="small.jpg"
 srcset="large.jpg 1024w,
         medium.jpg 640w,
         small.jpg 320w"
 sizes="(min-width: 36em) 33.3vw, 100vw">

@wknowles
Copy link

🤔 humm I hadn't thought about that! It should be possible - I would like this feature too. My JS is not good but I will have a look at it.

@rickibarnes
Copy link

+1 for this as a feature, would be great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants