-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround Chrome auto zoom animation bug
When applying the auto-zoom effect, Chrome sometimes stopped painting the backdrop, showing the dark default backdrop instead. Using a CSS keyframe animation instead of calling `animate` appears to avoid the problem. REDMINE-20789
- Loading branch information
Showing
5 changed files
with
89 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
entry_types/scrolled/package/src/frontend/v1/Backdrop/Effects.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.effects { | ||
height: 100%; | ||
} | ||
|
||
.autoZoom { | ||
animation: autoZoom var(--auto-zoom-duration) 1 ease; | ||
animation-fill-mode: forwards; | ||
} | ||
|
||
@keyframes autoZoom { | ||
from { | ||
transform: translate(calc(-1 * var(--auto-zoom-origin-x)), calc(-1 * var(--auto-zoom-origin-y))) | ||
scale(1) | ||
translate(var(--auto-zoom-origin-x), var(--auto-zoom-origin-y)); | ||
} | ||
to { | ||
transform: translate(calc(-1 * var(--auto-zoom-origin-x)), calc(-1 * var(--auto-zoom-origin-y))) | ||
scale(1.2) | ||
translate(var(--auto-zoom-origin-x), var(--auto-zoom-origin-y)); | ||
} | ||
} |