diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/static/client3.js | 2 | ||||
-rw-r--r-- | src/static/site6.css | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/static/client3.js b/src/static/client3.js index 77999488..969fe6fa 100644 --- a/src/static/client3.js +++ b/src/static/client3.js @@ -1491,7 +1491,7 @@ function updateStickyCoverVisibility(index) { const contentCover = info.contentCovers[index]; if (contentCover && stickyCoverContainer) { - if (contentCover.getBoundingClientRect().bottom < 0) { + if (contentCover.getBoundingClientRect().bottom < 4) { stickyCoverContainer.classList.add('visible'); } else { stickyCoverContainer.classList.remove('visible'); diff --git a/src/static/site6.css b/src/static/site6.css index 0f5a8f59..d2b9d9c6 100644 --- a/src/static/site6.css +++ b/src/static/site6.css @@ -1625,6 +1625,7 @@ main.long-content .content-sticky-heading-container .content-sticky-subheading-r .content-sticky-heading-cover-container:not(.visible) .content-sticky-heading-cover { opacity: 0; transform: translateY(15px); + transition: transform 0.35s, opacity 0.30s; } .content-sticky-heading-cover .image-container { |