feat: Q-bounce = squash/stretch (scaleY down + scaleX), smooth rebound + delayed duck sound; fill-screen layout
This commit is contained in:
+14
-13
@@ -152,11 +152,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onTap() {
|
onTap() {
|
||||||
playDuckSound()
|
// Q 弹:先上下压缩,再平滑回弹;回弹时放音效
|
||||||
// 敲击一下 Q 弹
|
|
||||||
this.tapAnim = true
|
this.tapAnim = true
|
||||||
const self = this
|
const self = this
|
||||||
setTimeout(() => { self.tapAnim = false }, 130)
|
setTimeout(() => { self.tapAnim = false }, 150)
|
||||||
|
setTimeout(() => { playDuckSound() }, 150)
|
||||||
|
|
||||||
const idx = Math.floor(Math.random() * this.lines.length)
|
const idx = Math.floor(Math.random() * this.lines.length)
|
||||||
const mode = this.isPeak ? '当前是峰时,钱包瑟瑟发抖' : '当前是谷时,薅羊毛好时机'
|
const mode = this.isPeak ? '当前是峰时,钱包瑟瑟发抖' : '当前是谷时,薅羊毛好时机'
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
|
|
||||||
.bubble-zone {
|
.bubble-zone {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 132px;
|
height: 110px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -262,19 +262,19 @@ export default {
|
|||||||
|
|
||||||
/* 吉祥物:比之前大一点 + 敲击 Q 弹 */
|
/* 吉祥物:比之前大一点 + 敲击 Q 弹 */
|
||||||
.mascot {
|
.mascot {
|
||||||
width: 280px;
|
width: 320px;
|
||||||
height: 280px;
|
height: 320px;
|
||||||
transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
|
transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mascot-tap {
|
.mascot-tap {
|
||||||
transform: scale(0.88);
|
transform: scale(1.05, 0.86);
|
||||||
}
|
}
|
||||||
|
|
||||||
.peak {
|
.peak {
|
||||||
font-size: 20px;
|
font-size: 22px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-top: 10px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.peak-green {
|
.peak-green {
|
||||||
@@ -286,14 +286,15 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stats {
|
.stats {
|
||||||
color: #b8c7e6;
|
color: #c4d2ea;
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
margin-top: 7px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 气泡:头像正上方居中,稍微放大 */
|
/* 气泡:头像正上方居中,稍微放大 */
|
||||||
.bubble {
|
.bubble {
|
||||||
width: 240px;
|
width: 256px;
|
||||||
|
flex-direction: column;
|
||||||
padding: 12px 14px;
|
padding: 12px 14px;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|||||||
Reference in New Issue
Block a user