Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cnchar-draw 的动画有bug,无法触发animateComplete 且报错 #281

Open
jianwi opened this issue Mar 20, 2024 · 1 comment
Open

cnchar-draw 的动画有bug,无法触发animateComplete 且报错 #281

jianwi opened this issue Mar 20, 2024 · 1 comment

Comments

@jianwi
Copy link

jianwi commented Mar 20, 2024

复现代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://fastly.jsdelivr.net/npm/cnchar-draw/cnchar.draw.min.js"></script>
<script type="module">
    cncharDraw('好', {
        // el: "#draw",
        type: "animation",
        animation: {
            autoAnimate: true,
            animateComplete: function () {
                console.log("动画完成")
            }
        },
    })
    </script>
</body>
</html>

image

@Th3G33k
Copy link

Th3G33k commented May 24, 2024

试了上面的代码,没遇到问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants