Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thisislawatts/coverimage
Background Image without the CSS
https://github.com/thisislawatts/coverimage
background-image
Last synced: about 1 month 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-11T08:32:00.000Z (over 7 years ago)
- Last Synced: 2024-09-14T15:48:25.426Z (2 months 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
===[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thisislawatts/coverimage/badges/quality-score.png?b=master)](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.