/img-background

Place a full size image in the background of the website using Polymer Project

Primary LanguageHTMLMIT LicenseMIT

Web Component - Image in the background of a website v.1.0.1 α

Place a full size image in the background of the website.

Usage

Polymer:

Just include the demo/elements/polymer-img-background.html and put a tag in your code like See demo for example

1. Include Polymer Project AND the img-background source

<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.3/platform.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.3/polymer.js"></script>

2. put the element on your website:

<img-background src="path-to-your-image"></img-background>

Todo:

Vanilla JS

tests and builds

License

MIT License