Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisburnell/paper-stamp
A Web Component to display an img as a paper stamp.
https://github.com/chrisburnell/paper-stamp
custom-element custom-elements customelement customelements javascript stamp web-component web-components webcomponent webcomponents
Last synced: 3 days ago
JSON representation
A Web Component to display an img as a paper stamp.
- Host: GitHub
- URL: https://github.com/chrisburnell/paper-stamp
- Owner: chrisburnell
- License: mit
- Created: 2024-03-23T18:43:17.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-04-07T12:13:55.000Z (6 months ago)
- Last Synced: 2024-09-21T02:02:29.350Z (6 days ago)
- Topics: custom-element, custom-elements, customelement, customelements, javascript, stamp, web-component, web-components, webcomponent, webcomponents
- Language: JavaScript
- Homepage: https://chrisburnell.com/paper-stamp/
- Size: 16.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `paper-stamp`
A Web Component to display an img as a paper stamp
**[Demo](https://chrisburnell.github.io/paper-stamp/demo.html)** | **[Further reading](https://chrisburnell.com/paper-stamp/)**
## Examples
### General usage example
```html
```
### Custom stamp color
```html
```
### Custom stamp padding
```html
```
### Custom stamp perforation size
```html
```
### Custom stamp perforation spacing multiplier
```html
```
## Features
This Web Component presents an img to make it look like a paper stamp.
## Installation
You have a few options (choose one of these):
1. Install via [npm](https://www.npmjs.com/package/@chrisburnell/paper-stamp): `npm install @chrisburnell/paper-stamp`
1. [Download the source manually from GitHub](https://github.com/chrisburnell/paper-stamp/releases) into your project.
1. Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)### Usage
Make sure you include the `` in your project (choose one of these):
```html
<!-- Host yourself -->
<script type="module" src="paper-stamp.js">
``````html
```
```html
```
## Credit
With thanks to the following people:
- [David Darnes](https://darn.es) for creating this [Web Component repo template](https://github.com/daviddarnes/component-template)