mirror of https://github.com/xwiki-labs/cryptpad
Fade in and delay the placeholder to hide it to high connection users
This commit is contained in:
parent
96a12d12a9
commit
46c0df4304
|
@ -17,5 +17,10 @@ elem.innerHTML = [
|
|||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.body.appendChild(elem);
|
||||
// fallback if CSS animations not available
|
||||
setTimeout(() => {
|
||||
document.querySelector('.placeholder-logo-container').style.opacity = 100;
|
||||
document.querySelector('.placeholder-message-container').style.opacity = 100;
|
||||
}, 3000);
|
||||
});
|
||||
}());
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
flex: 0 1 auto;
|
||||
min-height: 0;
|
||||
text-align: center;
|
||||
opacity: 0;
|
||||
animation: fadein 5s ease 2s forwards;
|
||||
}
|
||||
#placeholder .placeholder-logo-container img {
|
||||
max-width: 100%;
|
||||
|
@ -56,6 +58,8 @@
|
|||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
animation: fadein 5s ease 2s forwards;
|
||||
}
|
||||
#placeholder .placeholder-logo {
|
||||
margin-left: auto;
|
||||
|
@ -67,6 +71,11 @@
|
|||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
#placeholder {
|
||||
font-size: 16px !important;
|
||||
|
|
Loading…
Reference in New Issue