Skip to content

Commit

Permalink
Merge pull request #105 from chesio/patch-1
Browse files Browse the repository at this point in the history
Add an example of use with <picture> tag
  • Loading branch information
nk-o authored Apr 18, 2018
2 parents 930f893 + 5fc6eef commit e197548
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ You can add these plugins before jarallax initialize.
Your content here...
</div>

<!-- Background Image Parallax with <picture> tag -->
<div class="jarallax">
<picture class="jarallax-img">
<source media="..." srcset="<alternative_background_image_url_here>">
<img src="<background_image_url_here>" alt="">
</picture>
Your content here...
</div>

<!-- Alternate: Background Image Parallax -->
<div class="jarallax" style="background-image: url('<background_image_url_here>');">
Your content here...
Expand Down

0 comments on commit e197548

Please sign in to comment.