The meme element for modern web
Documentation | Live demo |
---|
Top text and bottom text
<x-meme type="wonka" top="oh you know html?" bottom="that's so cute."></x-meme>
Just bottom just with custom image
<x-meme src="https://i.imgflip.com/26am.jpg" bottom="germans!"></x-meme>
bower install x-meme
- Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.4/platform.js"></script>
- Import Custom Element:
<link rel="import" href="x-meme.html">
- Start using it!
<x-meme></x-meme>