Closed krmanik closed 1 year ago
function createXieHanziLogo(ref) { let xiehanzi = ["写", "汉", "字"]; for (let hanzi of xiehanzi) { const writer = HanziWriter.create(ref.current, hanzi, { width: 80, height: 80, padding: 5, strokeColor: hanzi == "写" ? "#4caf50" : "#2196f3" }) writer.loopCharacterAnimation(); } }