Produccion 1
This commit is contained in:
@@ -316,6 +316,7 @@
|
||||
}
|
||||
|
||||
.hero__card-media {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@@ -328,6 +329,50 @@
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
object-fit: cover;
|
||||
transition: transform 0.35s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image,
|
||||
.hero__card:focus-within .hero__card-image {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.hero__card-image--hover {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease, transform 0.35s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image--hover,
|
||||
.hero__card:focus-within .hero__card-image--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hero__card-title {
|
||||
background-image: linear-gradient(currentColor, currentColor);
|
||||
background-position: 0 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 0 1px;
|
||||
transition: background-size 0.25s ease;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-title,
|
||||
.hero__card-title:focus-visible {
|
||||
background-size: 100% 1px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero__card-image,
|
||||
.hero__card-image--hover,
|
||||
.hero__card-title {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.hero__card:hover .hero__card-image,
|
||||
.hero__card:focus-within .hero__card-image {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.hero__card-copy {
|
||||
|
||||
Reference in New Issue
Block a user