polymer-countdown-css

This component creates an animated countdown but with almost all of the work done in pure HTML/CSS

Usage no npm install needed!

<script type="module">
  import polymerCountdownCss from 'https://cdn.skypack.dev/polymer-countdown-css';
</script>

README

<countdown-css>

This component creates an animated countdown with almost all of the work done in pure HTML/CSS

Installation

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed.

npm install polymer-countdown-css

 Usage

There are two ways to call this component and made it work

1. Passing a certain amount of seconds:

<countdown-css totalSeconds="30"></countdown-css>

2. Passing a certain end date:

<countdown-css dateend="Thu Aug 23 2018 22:24:30 GMT+0100 (British Summer Time)"></countdown-css>

Viewing Your Element

$ polymer serve