mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-03 00:26:41 +07:00
fixed slide block transitions
This commit is contained in:
parent
d06593b4cb
commit
f837924ad4
3 changed files with 56 additions and 47 deletions
src/components/node/NodeImageSlideBlock
|
@ -17,6 +17,11 @@
|
|||
overflow: hidden;
|
||||
user-select: none;
|
||||
will-change: transform, height;
|
||||
transition: height 500ms, transform 500ms;
|
||||
|
||||
&:active {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.image {
|
||||
max-height: 960px;
|
||||
|
@ -44,22 +49,18 @@
|
|||
}
|
||||
|
||||
.placeholder {
|
||||
padding-bottom: 66%;
|
||||
position: relative;
|
||||
|
||||
& > div {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0.025;
|
||||
}
|
||||
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: $content_bg;
|
||||
z-index: 1;
|
||||
svg {
|
||||
opacity: 0.025;
|
||||
fill: white;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue