mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
add fading effect for inactive images
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
.image {
|
||||
max-height: 45vmin;
|
||||
width: auto;
|
||||
height: 55vmin;
|
||||
position: absolute;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
img {
|
||||
height: 55vmin;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.image[data-status="inactive"] {
|
||||
display: none;
|
||||
.inactive {
|
||||
opacity: 0;
|
||||
transition: opacity 300ms ease-in-out;
|
||||
}
|
||||
|
||||
.image[data-status="active"] {
|
||||
display: block;
|
||||
.active {
|
||||
opacity: 1;
|
||||
transition: opacity 0ms ease-in-out;
|
||||
}
|
||||
Reference in New Issue
Block a user