Countdown timer

Example creative

Add a container element where the countdown timer will display. Copy the code into the creative customJS and change the initial properties.

const STROKE_COLOR = 'black';
const TRAIL_COLOR = 'gray';
const CONTAINER_ID = 'a13';
const VIDEO_ELEMENT_ID = 'a2';
const RELOAD_BUTTON_ID = 'a8';

You can use the video element reload button for RELOAD_BUTTON_ID, and the countdown will use the same image for the reload button. If you leave this empty, it will use a default SVG reload icon.

Last updated

Was this helpful?