Skip to content

Commit

Permalink
Merge pull request #134 from marksto/patch-1
Browse files Browse the repository at this point in the history
Fix picture loader description
  • Loading branch information
dkern authored Feb 26, 2018
2 parents 2e40621 + e34e899 commit 301e353
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ The `noop-success` and `noop-error` loaders will return the current state to Laz
**Default for:** `<picture>`

Loads `<picture>` elements and attach the sources.
There are two ways you can prepare your audio and/or video tags.
There are two ways you can prepare your picture tags.
First way is to create all child elements from a single line:
```HTML
<picture data-src="default.jpg" data-srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" data-media="(min-width: 600px)" data-type="image/jpeg" />
Expand All @@ -219,12 +219,12 @@ First way is to create all child elements from a single line:
The other way is to add the sources like default, as child elements.
```HTML
<picture>
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg">
<data-img src="default.jpg" >
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg"></data-src>
<data-img src="default.jpg"></data-img>
</picture>

<picture data-src="default.jpg">
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg">
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg"></data-src>
</picture>
```

Expand Down

0 comments on commit 301e353

Please sign in to comment.