fix: disable lightbox animation in firefox since it isnt supported yet
This commit is contained in:
@@ -479,5 +479,16 @@ dialog.lightbox {
|
||||
@utility lightbox-image {
|
||||
box-sizing: content-box;
|
||||
max-width: calc(100vw - 2rem);
|
||||
max-height: calc(100vh - 8rem);
|
||||
max-height: calc(100vh - 10rem);
|
||||
}
|
||||
|
||||
/* Disable transition animation for Firefox
|
||||
* since it isn't supported yet */
|
||||
@supports (-moz-appearance: none) {
|
||||
::view-transition-group(lightbox-frame),
|
||||
::view-transition-old(lightbox-frame),
|
||||
::view-transition-new(lightbox-frame) {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user