Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

source picture

<picture>
  <source media="(min-width: 320px)" srcset="small.jpg 1x, small@2x.jpg 2x">
  <source media="(min-width: 640px)" srcset="big.jpg 1x, big@2x.jpg 2x">
  <img src="small.jpg" alt="Example image">
</picture>
Source by kia-king.com #
 
PREVIOUS NEXT
Tagged: #source #picture
ADD COMMENT
Topic
Name
2+7 =