Pulsing love heart web component
Made with <love-heart></love-heart> by me
Element dependencies are managed via Bower. You can install that via:
npm install -g bower
Then, go ahead and download the element's dependencies:
bower install
- Install love heart component:
$ bower install love-heart
-
Import Custom Element:
<link rel="import" href="bower_components/love-heart/love-heart.html">
-
Start using it!
<love-heart></love-heart>
.blue { color: blue; }
.big { font-size: 3.4em; }
Made with <love-heart class="blue"></love-heart> by me
Made with <love-heart class="big"></love-heart> by me
You can add love-heart component fallback which is visible before page load is complete:
Made with <love-heart>love</love-heart> by Jan Antala
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
npm install -g bower polyserve
Install local dependencies
bower install
And you can run it via:
polyserve
Once running, you can preview your element at
http://localhost:8080/components/love-heart/
, where love-heart
is the name of the directory containing it.
- 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
The MIT License
Copyright (c) 2015 Jan Antala