A Polymer element to put any paragraph of text inside a shape you choose (Experimental)
Install the component using Bower:
$ bower install plastic-paragraph --save
Or download as ZIP.
- Import Web Components' polyfill:
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.5.2/webcomponents.min.js"></script>
- Import Custom Element:
<link rel="import" href="plastic-paragraph/plastic-paragraph.html">
- Start using it!
<p is="plastic-paragraph"></p>
Attribute | Options | Default | Description |
---|---|---|---|
shape |
circle , rhomb , diagonal , sandglass |
circle |
The shape attribute sets a wrapping shape |
size |
int | 320 |
The size attribute sets a size of an element |
<p is="plastic-paragraph" shape="circle" size="600">Web Components usher in a new era of web development based on encapsulated and interoperable custom elements that extend HTML itself. Built atop these new standards, Polymer makes it easier and faster to create anything from a button to a complete application across desktop, mobile, and beyond.</p>
- 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 ;)
For detailed changelog, check Releases.