The very simple app I have created allows you to generate a countdown timer animated gif depending on the URL parameters you provide. View demo. Now no longer maintained.
- time* - Date & time when your countdown will end [e.g. 2016-06-24T20:35]
- frames - number of frames (also number of seconds) the countdown will run before looping [defaults to 30]
- width - width in pixels [defaults to 200]
- height - height in pixels [defaults to 200]
- bg - hex colour code for the background [defaults to 000000]
- color - hex colour code for the text [defaults to ffffff]
- name - filename used for the generated gif [defaults to 'default']
These trigger a download. Change the URL from /generate
to /serve
when used in an image tag.
- Basic: /generate?time=2018-09-24T20:35
- Custom dimensions: /generate?time=2018-09-24T20:35&width=300&height=150
- Custom colours: /generate?time=2018-09-24T20:35&bg=028900&color=adff00
- Custom name & frames: /generate?time=2018-09-24T20:35&name=awesome-gif&frames=20
Tested with and designed for:
- node 6.0.0
- cairo 1.8.6