mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
optimize image component
- use new intersection hooks instead of react-intersection-observer - remove motion, replace with css animation - remove unneeded container from Loader component
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -5,6 +15,11 @@
|
||||
border-radius: var(--theme-radius-md);
|
||||
}
|
||||
|
||||
.image.animated {
|
||||
opacity: 1;
|
||||
animation: fade-in 0.2s ease-in;
|
||||
}
|
||||
|
||||
.loader {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user