Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Интегрция с responsivebreakpoints.com #106

Open
pafnuty opened this issue Jan 9, 2018 · 0 comments
Open

Интегрция с responsivebreakpoints.com #106

pafnuty opened this issue Jan 9, 2018 · 0 comments
Assignees

Comments

@pafnuty
Copy link
Member

pafnuty commented Jan 9, 2018

Было бы здорово генерировать наборы изображений для отображения на мобильных/десктопах и для разных размеров экранов с помошью http://www.responsivebreakpoints.com/ или похожего сервиса или с помошью существующего функционала. (например новый модификатор, который будет возвращать готовый html)

<picture>
  <img
  
    sizes="(max-width: 1400px) 100vw, 1400px"

    srcset="
    dog_c_scale,w_200.jpg 200w,
    dog_c_scale,w_418.jpg 418w,
    dog_c_scale,w_590.jpg 590w,
    dog_c_scale,w_731.jpg 731w,
    dog_c_scale,w_840.jpg 840w,
    dog_c_scale,w_944.jpg 944w,
    dog_c_scale,w_1069.jpg 1069w,
    dog_c_scale,w_1173.jpg 1173w,
    dog_c_scale,w_1268.jpg 1268w,
    dog_c_scale,w_1360.jpg 1360w,
    dog_c_scale,w_1398.jpg 1398w,
    dog_c_scale,w_1400.jpg 1400w"

    src="dog_c_scale,w_1400.jpg"

    alt=""
  >
</picture>
@pafnuty pafnuty self-assigned this Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant