Add scale animation to chapter tooltip hover effect

This commit is contained in:
2025-05-30 13:15:06 -04:00
parent 3bfbcdc692
commit 56c883cb79
+6 -1
View File
@@ -136,7 +136,8 @@
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease 0.5s, visibility 0.3s ease 0.5s;
transform: translateX(-50%) scale(0.8);
transition: opacity 0.3s ease 0.5s, visibility 0.3s ease 0.5s, transform 0.3s ease 0.5s;
}
.chapter-link::after {
@@ -160,6 +161,10 @@
visibility: visible;
}
.chapter-link:hover::before {
transform: translateX(-50%) scale(1);
}
@media (max-width: 768px) {
.chapter-link::before {
position: fixed;