x-giphy

Web Component wrapper for Giphy API. #science


License
MIT
Install
bower install x-giphy

Documentation

<x-giphy>

Web Component wrapper for Giphy API

Maintained by Rob Dodson.

Demo

Check it live.

Usage

  1. Install the component
bower install x-giphy --save
  1. Include platform.js:
<script src="bower_components/platform/platform.js"></script>
  1. Import Custom Element:
<link rel="import" href="bower_components/x-giphy/x-giphy.html">
  1. 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

See demo page for code examples.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License © Rob Dodson