joelniklaus HF Staff commited on
Commit
c0312c5
·
1 Parent(s): dec92cb

make book animation less strong

Browse files
Files changed (1) hide show
  1. app/src/content/embeds/banner.html +2 -2
app/src/content/embeds/banner.html CHANGED
@@ -293,7 +293,7 @@
293
 
294
  // Page-top perspective: we're looking from slightly above
295
  const pageTopBase = Math.max(3, bookAreaH * 0.08); // default visible depth
296
- const pageTopHover = Math.max(6, bookAreaH * 0.22); // deeper on hover
297
  const pageInset = Math.max(1, bookAreaH * 0.008); // trapezoid inset
298
 
299
  // --- Pack books onto shelves ---
@@ -581,7 +581,7 @@
581
  });
582
 
583
  // --- Tilt transform: compress spine Y from bottom to simulate tilting forward ---
584
- const tiltSy = 0.75;
585
  function tiltTransform(d) {
586
  const cx = d.bx + d.bw / 2;
587
  const bot = d.by + d.bh;
 
293
 
294
  // Page-top perspective: we're looking from slightly above
295
  const pageTopBase = Math.max(3, bookAreaH * 0.08); // default visible depth
296
+ const pageTopHover = Math.max(6, bookAreaH * 0.15); // deeper on hover
297
  const pageInset = Math.max(1, bookAreaH * 0.008); // trapezoid inset
298
 
299
  // --- Pack books onto shelves ---
 
581
  });
582
 
583
  // --- Tilt transform: compress spine Y from bottom to simulate tilting forward ---
584
+ const tiltSy = 0.9;
585
  function tiltTransform(d) {
586
  const cx = d.bx + d.bw / 2;
587
  const bot = d.by + d.bh;