ADizgna09
ADizgna09

Reputation: 13

FlipClock js countdown timer with webpack

I am working on a simple countdown timer from 1:00 minutes to 00:00, the thing is that I have to use the flipclock.js package manager, if I add new Date as second argument to FlipClock is works but when I try to add integer like : new FlipClock(el,60) - for example, to countdown from 1 to 0 , I get an error getTime is not defined

I hope you understand me.

Thanks in advance

import FlipClock from 'flipclock';

const el = document.querySelector('.clock');

const clock = new FlipClock(el,new Date {
    countdown: true,
    face: 'MinuteCounter',
});

Upvotes: 0

Views: 116

Answers (0)

Related Questions