-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom effect on hover when an image is linked #340
Comments
I did some research on this and made a slight edit above ⬆️ . The UCSC custom Query Loop Card is where this behavior occurs. See below.
|
The UCSC Query Loop Card pattern has The styles are in the /* Card images */
:where(.ucsc__card .wp-block-image),
:where(.ucsc__card .wp-block-post-featured-image) {
a {
display: block;
overflow: hidden;
img {
transition: transform 0.3s ease;
}
&:hover,
&:focus {
img {
transform: scale(1.15);
}
}
}
} |
The commit above ⬆️ adds the img {
transform: scale(1.15);
@media screen and (prefers-reduced-motion: reduce) {
transform: none;
}
} Demo:(note: demo uses Firefox. Firefox and Safari automatically detect the video1697708358.mp4 |
imageFeatured Image blockPattern(?) will toggle this behaviorThe text was updated successfully, but these errors were encountered: