mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-04 17:16:40 +07:00
smouth image loading
This commit is contained in:
parent
e1a9dd66fc
commit
6f90115d3b
5 changed files with 48 additions and 30 deletions
src/components/node/ImageSwitcher
|
@ -38,6 +38,8 @@
|
|||
// background: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: inset white 0 0 0 2px;
|
||||
transform: scale(0.5);
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
|
||||
&:global(.is_active) {
|
||||
|
@ -45,5 +47,9 @@
|
|||
background: white;
|
||||
}
|
||||
}
|
||||
|
||||
&:global(.is_loaded)::after {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue