https://github.com/thisislawatts/coverimage
Background Image without the CSS
https://github.com/thisislawatts/coverimage
background-image
Last synced: about 1 year ago
JSON representation
Background Image without the CSS
- Host: GitHub
- URL: https://github.com/thisislawatts/coverimage
- Owner: thisislawatts
- License: mit
- Created: 2015-06-03T11:12:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-11T08:32:00.000Z (over 9 years ago)
- Last Synced: 2025-03-22T04:34:57.467Z (over 1 year ago)
- Topics: background-image
- Language: JavaScript
- Homepage: http://thisislawatts.github.io/coverimage/
- Size: 48.8 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CoverImage
===
[](https://scrutinizer-ci.com/g/thisislawatts/coverimage/?branch=master)
Takes an element and uses the first image found to replicate the behaviour of `background-size: cover` from CSS.
The advantage of this method is that you get all the semantics/accessibility of an image present within the mark-up.
Usage
---
```html
```
Contributing
---
Please do.