https://github.com/johnantoni/meteor-picturefill
A responsive image polyfill for <picture>, srcset, sizes, and more ~ packaged for Meteor
https://github.com/johnantoni/meteor-picturefill
Last synced: about 1 year ago
JSON representation
A responsive image polyfill for <picture>, srcset, sizes, and more ~ packaged for Meteor
- Host: GitHub
- URL: https://github.com/johnantoni/meteor-picturefill
- Owner: johnantoni
- License: mit
- Created: 2015-02-27T19:49:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T20:48:41.000Z (about 11 years ago)
- Last Synced: 2025-03-30T17:17:50.306Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://atmospherejs.com/johnantoni/meteor-picturefill
- Size: 184 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# meteor-picturefill
A responsive image polyfill for picture, srcset, sizes, and more. packaged for Meteor
Based on the picturefill js library by Scott Jehl.
http://scottjehl.github.io/picturefill/
### Install
meteor add johnantoni:meteor-picturefill
### Usage
Examples http://scottjehl.github.io/picturefill/#examples
### Markup
#### As HTML
#### As JADE
picture
|
source(srcset="examples/images/extralarge.jpg" media="(min-width: 1000px)")
source(srcset="examples/images/large.jpg" media="(min-width: 800px)")
|
img(srcset="examples/images/medium.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia")