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