remove fade-in from description (LCP) on page load
This commit is contained in:
parent
5c3f5ece7d
commit
3f72fa1160
4 changed files with 16 additions and 4 deletions
|
@ -57,6 +57,12 @@ class PeersUI {
|
|||
console.log("Retrieved edited display name:", displayName)
|
||||
if (displayName) Events.fire('self-display-name-changed', displayName);
|
||||
});
|
||||
|
||||
|
||||
/* prevent animation on load */
|
||||
setTimeout(_ => {
|
||||
this.$xNoPeers.style.animationIterationCount = "1";
|
||||
}, 300);
|
||||
}
|
||||
|
||||
_insertDisplayName(displayName) {
|
||||
|
|
|
@ -405,10 +405,10 @@ x-no-peers {
|
|||
flex-direction: column;
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
/* prevent flickering on load */
|
||||
animation: fade-in 300ms;
|
||||
animation-delay: 500ms;
|
||||
animation-fill-mode: backwards;
|
||||
/* prevent flickering on load */
|
||||
animation-iteration-count: 0;
|
||||
}
|
||||
|
||||
x-no-peers h2,
|
||||
|
|
|
@ -57,6 +57,12 @@ class PeersUI {
|
|||
console.log("Retrieved edited display name:", displayName)
|
||||
if (displayName) Events.fire('self-display-name-changed', displayName);
|
||||
});
|
||||
|
||||
|
||||
/* prevent animation on load */
|
||||
setTimeout(_ => {
|
||||
this.$xNoPeers.style.animationIterationCount = "1";
|
||||
}, 300);
|
||||
}
|
||||
|
||||
_insertDisplayName(displayName) {
|
||||
|
|
|
@ -415,10 +415,10 @@ x-no-peers {
|
|||
flex-direction: column;
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
/* prevent flickering on load */
|
||||
animation: fade-in 300ms;
|
||||
animation-delay: 500ms;
|
||||
animation-fill-mode: backwards;
|
||||
/* prevent flickering on load */
|
||||
animation-iteration-count: 0;
|
||||
}
|
||||
|
||||
x-no-peers h2,
|
||||
|
|
Loading…
Reference in a new issue