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() {
|
||||
playDuckSound()
|
||||
// 敲击一下 Q 弹
|
||||
// Q 弹:先上下压缩,再平滑回弹;回弹时放音效
|
||||
this.tapAnim = true
|
||||
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 mode = this.isPeak ? '当前是峰时,钱包瑟瑟发抖' : '当前是谷时,薅羊毛好时机'
|
||||
@@ -215,7 +215,7 @@ export default {
|
||||
|
||||
.bubble-zone {
|
||||
width: 100%;
|
||||
height: 132px;
|
||||
height: 110px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -262,19 +262,19 @@ export default {
|
||||
|
||||
/* 吉祥物:比之前大一点 + 敲击 Q 弹 */
|
||||
.mascot {
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
width: 320px;
|
||||
height: 320px;
|
||||
transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
}
|
||||
|
||||
.mascot-tap {
|
||||
transform: scale(0.88);
|
||||
transform: scale(1.05, 0.86);
|
||||
}
|
||||
|
||||
.peak {
|
||||
font-size: 20px;
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.peak-green {
|
||||
@@ -286,14 +286,15 @@ export default {
|
||||
}
|
||||
|
||||
.stats {
|
||||
color: #b8c7e6;
|
||||
font-size: 15px;
|
||||
margin-top: 7px;
|
||||
color: #c4d2ea;
|
||||
font-size: 16px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* 气泡:头像正上方居中,稍微放大 */
|
||||
.bubble {
|
||||
width: 240px;
|
||||
width: 256px;
|
||||
flex-direction: column;
|
||||
padding: 12px 14px;
|
||||
border-radius: 16px;
|
||||
background-color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user