Skip to content

Commit

Permalink
#61 adds timing fixes to hocus.css
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesKhong committed Feb 29, 2024
1 parent 935d3b7 commit 2ac847d
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion assets/css/atoms-molecules/hocus.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,42 @@
/* Zoom on image on hover */
.ts-hocus-scale img {
transition: transform 300ms cubic-bezier(0, 1.25, 1, 1.25);
transition: transform 400ms ease-in-out;
}
.ts-hocus-scale:hover img {
transform: scale(1.02);
}

/* Shadow */
.hocus-card-shadow {
transition: var(--transition-default);
}
.hocus-card-shadow:hover {
box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.10);
}

/* Card hover/focus style */
.card-overlay-link:hover + .card-title-hocus,
.card-title-hocus:focus {
text-decoration: underline;
text-underline-offset: var(--spacer-2xs);
transition: all var(--transition-default);
}

/* Underline */
.hocus-underline {
transition: var(--transition-default);
}
.hocus-underline {
@apply hover:underline focus:underline underline-offset-4;
}

/* Action color text */
.hocus-action {
transition: var(--transition-default);
}
.hocus-action:hover,
.hocus-action:focus {
color: var(--color-action);
}


0 comments on commit 2ac847d

Please sign in to comment.