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

@@ -14,6 +14,7 @@ Also see the other related files: API.md, IIS.md, SPEC.md
## Working Style
- After every iteration, do a git commit with a brief summary of the changes as a commit message.
- If you find unexpected changes in the code, never revert them without asking first.
- Implement API first, UI second
- Keep changes small and testable
- Prefer clarity over abstraction

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);
}