1
0
Fork 0
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:
muerwre 2019-08-25 17:56:03 +07:00
parent e1a9dd66fc
commit 6f90115d3b
5 changed files with 48 additions and 30 deletions
src/components/node/ImageSwitcher

View file

@ -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);
}
}
}