html中如何让一根线不停地运动 如何制作扫描仪

一根线(有图片)如何像扫描仪一样 不停地在二维码上进行重复运动



```html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0">
<title></title>
<style type="text/css">
div.img-box {
    position: relative;
}

img {
    width: 200px;
    height: 240px;
    position: absolute;
    display: none;
}

div.wrapper {
    width: 200px;
    height: 240px;
    background: 
    linear-gradient(#1a98ca, #1a98ca),
    linear-gradient(90deg, #ffffff33 1px,transparent 0,transparent 19px),
    linear-gradient( #ffffff33 1px,transparent 0,transparent 19px),
    linear-gradient(transparent, #1a98ca);
    background-size:100% 1.5%, 10% 100%,100% 8%, 100% 100%;
    background-repeat:no-repeat, repeat, repeat, no-repeat;
    background-position: 0% 0%, 0 0, 0 0, 0 0;
    /* 初始位置 */
    clip-path: polygon(0% 0%, 100% 0%, 100% 1.5%, 0% 1.5%);
    /* 添加动画效果 */
    animation: move 2s infinite linear;
}

@keyframes move{
    to{
        background-position: 0 100%,0 0, 0 0, 0 0;
        /* 终止位置 */
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}
</style>
</head>
<body>
    <div class="img-box">
        <img src="./images/asd23.png" alt="">
        <div class="wrapper"></div>
    </div>
</body>
</html>