0 points

Image srcset


dashboard

Mon Sep 21 2020 20:34:33 GMT+0000 (UTC)

Posted by @rstringa #html #css

<picture>
<source media='(max-width: 1024px)' srcset='<?php echo get_template_directory_uri()?>/images/demo/work-image-bg--mobile.jpg' class="project__bg--mobile" alt="">
<img src="<?php echo get_template_directory_uri()?>/images/demo/work-image-bg.jpg" class="project__bg--desktop" alt="" />
</picture>
content_copy Copy