« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
Diffstat (limited to 'src/static')
-rw-r--r--src/static/client3.js2
-rw-r--r--src/static/site6.css1
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 {