mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46:12 +00:00
feat: Increase the number of steps for glance animation, b=no-bug, c=glance
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
// Arc animation configuration
|
// Arc animation configuration
|
||||||
#ARC_CONFIG = Object.freeze({
|
#ARC_CONFIG = Object.freeze({
|
||||||
ARC_STEPS: 40, // Increased for smoother bounce
|
ARC_STEPS: 60, // Increased for smoother bounce
|
||||||
MAX_ARC_HEIGHT: 30,
|
MAX_ARC_HEIGHT: 30,
|
||||||
ARC_HEIGHT_RATIO: 0.2, // Arc height = distance * ratio (capped at MAX_ARC_HEIGHT)
|
ARC_HEIGHT_RATIO: 0.2, // Arc height = distance * ratio (capped at MAX_ARC_HEIGHT)
|
||||||
});
|
});
|
||||||
@@ -609,7 +609,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let scale = 1;
|
let scale = 1;
|
||||||
const bounceSteps = 50;
|
const bounceSteps = 60;
|
||||||
if (direction === 'opening') {
|
if (direction === 'opening') {
|
||||||
for (let i = 0; i < bounceSteps; i++) {
|
for (let i = 0; i < bounceSteps; i++) {
|
||||||
const progress = i / bounceSteps;
|
const progress = i / bounceSteps;
|
||||||
|
Reference in New Issue
Block a user