Background panning

This commit is contained in:
2026-02-03 01:30:00 +01:00
parent 86fa22450d
commit 95f01da365
2 changed files with 4 additions and 3 deletions

View File

@@ -839,9 +839,9 @@ function setupCardVisualHover(el, url) {
function setupBackgroundPan(config = {}) {
const root = document.documentElement;
const maxOffset = config.maxOffsetPx ?? 30;
const ease = config.ease ?? 0.08;
const scaleFactor = config.scaleFactor ?? 1.12;
const maxOffset = config.maxOffsetPx ?? 10;
const ease = config.ease ?? 0.03;
const scaleFactor = config.scaleFactor ?? 1.05;
if (scaleFactor) {
root.style.setProperty("--bg-scale", scaleFactor);
}