mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #16025 from calixteman/no_display_for_spinner
Avoid a useless animation when the spinner is invisible
This commit is contained in:
commit
8df06f62bc
1 changed files with 5 additions and 5 deletions
|
@ -166,22 +166,22 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
background: url("images/loading-icon.gif") center no-repeat;
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
/* Using a delay with background-image doesn't work,
|
||||
consequently we use the visibility. */
|
||||
transition-property: visibility;
|
||||
consequently we use the display. */
|
||||
transition-property: display;
|
||||
transition-delay: var(--loading-icon-delay);
|
||||
z-index: 5;
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.pdfViewer .page.loading:after {
|
||||
visibility: visible;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pdfViewer .page:not(.loading):after {
|
||||
transition-property: none;
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pdfViewer.enablePermissions .textLayer span {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue