import { CountUp } from "countup.js";

export const countUpNum = (dom, value, decimalPlaces = 0, durations = 2) => {
  const options = {
    // 小数点位
    decimalPlaces,
    // 持续时间
    durations,
  };
  new CountUp(dom, value, options).start();
};
