Skip to content

Commit

Permalink
fixup! enhance: animations
Browse files Browse the repository at this point in the history
  • Loading branch information
abtx committed Aug 11, 2023
1 parent c67b025 commit 7d520c2
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/components/GlossarySearch/GlossaryTerm.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1.5rem;
padding: 1rem;
border: 1px solid var(--border-color);
border-radius: 8px;
transition: all 0.2s ease-in-out;
Expand All @@ -22,22 +22,38 @@
display: flex;
gap: 0.5rem;
align-items: baseline;
padding: 0.5rem 0.5rem 0 0.5rem;
}

/* Hover animations */
.glossary-term__card-description {
padding: 0.5rem;
border-radius: 6px;
}

/* Hover animations */
.glossary-term__card-title,
.glossary-term__card-description,
.glossary-term__card-link .arrow-icon {
transition: all 0.2s ease-in-out;
}

.glossary-term__card:hover {
background-color: var(--nu20);
background-color: #eeeef7;
transform: translateY(-5px);
}


.glossary-term__card:hover .glossary-term__card-description {
transform: translate3d(0, -.5rem, 0);
background-position: -100% 0;
}

.glossary-term__card-description {
background: linear-gradient(to right, #ffffff00 50%, #db44b82b 50%);
background-size: 200%;
background-position: 0 0;
display: inline;
transition: .2s ease-in-out;
}

/* link */
Expand Down

0 comments on commit 7d520c2

Please sign in to comment.