插件本身不支持二维码扫描线,但可以通过css方式加入
#qr-shaded-region {
overflow: hidden;
}
#qr-shaded-region::after {
position: absolute;
content: '';
width: 100%;
top: 0;
left: 0;
transform: translateY(-100%);
height: 50px;
background: linear-gradient(180deg, rgba(0, 255, 51, 0) 43%, #ccc 211%);
border-bottom: 1px solid #ccc;
animation: scan-animation 2s linear infinite;
}
@keyframes scan-animation {
0% {
top: 0;
}
100% {
top: 100%;
}
}
网友评论