|
@@ -78,7 +78,8 @@ export function initSmoothAnimation() {
|
|
|
// 当前屏幕的宽度
|
|
|
calcClientWidth()
|
|
|
document.addEventListener("resize", calcClientWidth)
|
|
|
- smoothAnimationState.isShow.value = true
|
|
|
+ // 初始化 只有练习模式 才显示
|
|
|
+ state.modeType === "practise" && (smoothAnimationState.isShow.value = true)
|
|
|
console.log(smoothAnimationState, "一行谱小鸟数据")
|
|
|
}
|
|
|
|
|
@@ -285,7 +286,7 @@ function createSmoothAnimation() {
|
|
|
}, 0)
|
|
|
// box
|
|
|
const smoothAnimationBoxDom = document.createElement("div")
|
|
|
- smoothAnimationBoxDom.className = "smoothAnimationBox"
|
|
|
+ smoothAnimationBoxDom.className = "smoothAnimationBox smoothAnimationBoxHide"
|
|
|
smoothAnimationState.smoothAnimationBoxDom = smoothAnimationBoxDom
|
|
|
// con
|
|
|
const smoothAnimationConDom = document.createElement("div")
|