Speed up animations and reduce CPU turn delays
- Reduce move animation durations by 40% for snappier card movement - Widen and slow down turn indicator shake for better visibility - Cut CPU turn delays significantly: - Pre-turn pause: 0.6s → 0.25s - Initial look: 0.6-0.9s → 0.3-0.5s - Post-draw settle: 0.9s → 0.5s - Post-draw consider: 0.6-0.9s → 0.3-0.6s - Post-action pause: 0.6-0.9s → 0.3-0.5s Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -190,7 +190,7 @@ class CardAnimations {
|
||||
targets: animCard,
|
||||
translateY: -15,
|
||||
rotate: [-2, 0],
|
||||
duration: 105,
|
||||
duration: 63,
|
||||
easing: this.getEasing('lift')
|
||||
});
|
||||
|
||||
@@ -200,7 +200,7 @@ class CardAnimations {
|
||||
left: holdingRect.left,
|
||||
top: holdingRect.top,
|
||||
translateY: 0,
|
||||
duration: 175,
|
||||
duration: 105,
|
||||
easing: this.getEasing('move')
|
||||
});
|
||||
|
||||
@@ -276,7 +276,7 @@ class CardAnimations {
|
||||
targets: animCard,
|
||||
translateY: -12,
|
||||
scale: 1.05,
|
||||
duration: 42
|
||||
duration: 25
|
||||
});
|
||||
|
||||
// Direct move to holding
|
||||
@@ -286,7 +286,7 @@ class CardAnimations {
|
||||
top: holdingRect.top,
|
||||
translateY: 0,
|
||||
scale: 1,
|
||||
duration: 126
|
||||
duration: 76
|
||||
});
|
||||
|
||||
// Minimal pause
|
||||
@@ -675,8 +675,8 @@ class CardAnimations {
|
||||
|
||||
anime({
|
||||
targets: element,
|
||||
translateX: [0, -4, 4, -3, 2, 0],
|
||||
duration: 200,
|
||||
translateX: [0, -8, 8, -6, 4, 0],
|
||||
duration: 400,
|
||||
easing: 'easeInOutQuad'
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user