mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Add scale animation to chapter tooltip hover effect
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user