Background panning
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user