Playworks 临时记录.md 1.1 KB

#灵感

官方说明文档:https://docs.lunalabs.io/docs/playable/overview

在playwork生成的,单html文件中,预加载的时候,会有这个进度条

![[Pasted image 20250620095345.png]]

是因为有这仨css样式

.preloader__outer__bar {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
    height: 1.2vmax;
    margin: 0.4vmax;
    border-radius: 1000px;
}

.preloader__outer__bar:before {
    content: '';
    position: absolute;
    border: 0.3vmax solid #fff;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 100vh;
}

.preloader__bar {
    width: 0;
    height: calc(100% - 0.4vmax);
    margin: 0.2vmax;
    border-radius: 10000px;
    box-sizing: border-box;
    background: white;
    animation: loading 8s forwards;
}

解决方法:

![[Pasted image 20250620095940.png]]

作用说明:

![[Pasted image 20250620100408.png]]

![[Pasted image 20250620100450.png]]

![[Pasted image 20250620100509.png]]

重新打开网页,可以看到,是生效的了,没有进度条

![[Pasted image 20250620100604.png]]

FAQ

![[Pasted image 20250623134016.png]]