38 lines
624 B
CSS
38 lines
624 B
CSS
.product-transition {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2500;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.product-transition__wash {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--theme-bg);
|
|
}
|
|
|
|
.product-transition__image {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
max-width: none;
|
|
object-fit: contain;
|
|
transform-origin: 0 0;
|
|
will-change: transform, opacity;
|
|
filter: var(--shadow-product);
|
|
}
|
|
|
|
body.product-transition-active {
|
|
cursor: progress;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.product-transition {
|
|
display: none;
|
|
}
|
|
}
|