mirror of
https://github.com/zen-browser/desktop
synced 2026-04-25 17:15:00 +02:00
no-bug: Dont animate glance image preview opacity (gh-13055)
This commit is contained in:
@@ -507,17 +507,6 @@ class nsZenGlanceManager extends nsZenDOMOperatedFeature {
|
||||
this.#glances.get(this.#currentGlanceID).elementImageData =
|
||||
data.elementData;
|
||||
|
||||
gZenUIManager.motion.animate(
|
||||
imageDataElement,
|
||||
{
|
||||
opacity: [1, 0],
|
||||
},
|
||||
{
|
||||
duration: this.#GLANCE_ANIMATION_DURATION / 2,
|
||||
easing: "easeInOut",
|
||||
}
|
||||
);
|
||||
|
||||
return imageDataElement;
|
||||
}
|
||||
|
||||
|
||||
@@ -170,6 +170,7 @@
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
z-index: 0;
|
||||
@@ -179,6 +180,10 @@
|
||||
translate: -50% -50%;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
& image {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user