Awesome
<xmas-tree>
Web Components Experiment using CSS and Ambient Light API.
Attention: Ambient Light API only works in Firefox 22+ (Mac OS X).
Demo
Setup
$ [sudo] npm install -g grunt-cli ```
-
Install local dependencies:
$ npm install ```
-
Run a local server:
$ grunt ```
Now you can see the website running in http://localhost:9000
:D
Usage
-
Import Web Components' polyfill:
```
2. Import Custom Element:
```xml
<link rel="import" href="src/xmas-tree.html">
```
-
Start using it!
<xmas-tree></xmas-tree> ```
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Web Components Gallery
This Web Component can be found in customelements.io, submit your project too!
License
MIT License © Bernard De Luna & Zeno Rocha