mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
#35 fixed image transitions
This commit is contained in:
parent
5496db54f7
commit
d6c88da2c9
1 changed files with 12 additions and 5 deletions
|
@ -33,18 +33,21 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
transform: translate(0, 10px);
|
||||||
filter: brightness(50%) saturate(0.5);
|
filter: brightness(50%) saturate(0.5);
|
||||||
transition: opacity 0.5s, filter 1s, transform 1s;
|
transition: opacity 0.5s, filter 0.5s, transform 0.5s;
|
||||||
padding-bottom: $gap * 1.5;
|
padding-bottom: $gap * 1.5;
|
||||||
padding-top: $gap;
|
padding-top: $gap;
|
||||||
|
|
||||||
&:global(.swiper-slide-active) {
|
&:global(.swiper-slide-active) {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
filter: brightness(100%);
|
filter: brightness(100%);
|
||||||
|
transform: translate(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
transform: translate(0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,11 +55,15 @@
|
||||||
max-height: calc(100vh - 70px - 70px);
|
max-height: calc(100vh - 70px - 70px);
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
transition: box-shadow 1s;
|
||||||
|
box-shadow: transparentize(black, 0.7) 0 3px 5px;
|
||||||
|
|
||||||
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
:global(.swiper-slide-active) & {
|
||||||
transparentize(black, 0.7) 0 5px 5px,
|
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
||||||
transparentize(white, 0.95) 0 -1px 2px,
|
transparentize(black, 0.7) 0 5px 5px,
|
||||||
transparentize(white, 0.95) 0 -1px;
|
transparentize(white, 0.95) 0 -1px 2px,
|
||||||
|
transparentize(white, 0.95) 0 -1px;
|
||||||
|
}
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue