Stroke Animation Demo
CdlUtils.Animator.animateCharacter('target-element-id', '你', {
width: 400, // px
height: 400, // px
apiKey: 'your-api-key',
loopAnimation: true,
// add a subtle ink-drying effect
animateStyles: {
start: {
fill: '#111'
},
end: {
fill: '#494949'
}
}
});
<div id='target-element-id'></div>