0.0.2 • Published 25 days ago
@chrisburnell/cssnakedday-countdown v0.0.2
cssnakedday-countdown
A Web Component to display an img as a paper stamp
Examples
General usage example:
<script type="module" src="cssnakedday-countdown.js"></script>
<cssnakedday-countdown></cssnakedday-countdown>
Features
A Web Component to display a countdown to CSS Naked Day.
Installation
You have a few options (choose one of these):
- Install via npm:
npm install @chrisburnell/cssnakedday-countdown
- Download the source manually from GitHub into your project.
- Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)
Usage
Make sure you include the <script>
in your project (choose one of these):
<!-- Host yourself -->
<script type="module" src="cssnakedday-countdown.js"></script>
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://www.unpkg.com/@chrisburnell/cssnakedday-countdown/cssnakedday-countdown.js"
></script>
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://esm.sh/@chrisburnell/cssnakedday-countdown"
></script>
Credit
With thanks to the following people:
- David Darnes for creating this Web Component repo template