Hackvent_2019/Day 15/Santa's workshop_files/count.js

10 lines
210 B
JavaScript
Raw Normal View History

2019-12-16 20:29:35 +01:00
import { CountUp } from './countUp.js';
const options = {
separator: '.',
};
countUp = new CountUp('gifts', 0, options);
if (!countUp.error) {
countUp.start();
} else {
console.error(countUp.error);
}