<x-giphy>
Web Component wrapper for Giphy API
Maintained by Rob Dodson.
Demo
Usage
- Install the component
bower install x-giphy --save
- Include platform.js:
<script src="bower_components/platform/platform.js"></script>- Import Custom Element:
<link rel="import" href="bower_components/x-giphy/x-giphy.html">- Start using it!
<x-giphy term="funny cat"></x-giphy>Options
| Attribute | Options | Description |
|---|---|---|
key |
string | Your Giphy API key (defaults to beta key) |
term |
string | Find gif that matches this term |
random |
boolean | Picks a random gif to display |
translate |
boolean | Uses Giphy "special sauce" to find matching gif |
gifId |
string | Displays the gif that matches this id |
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
License
MIT License © Rob Dodson
