mirror of https://github.com/kiwix/libkiwix.git
added fade out
This commit is contained in:
parent
5b46ad5934
commit
f39c558d2a
|
@ -57,10 +57,13 @@
|
||||||
|
|
||||||
function toggleFooter(show=false) {
|
function toggleFooter(show=false) {
|
||||||
const footer = document.getElementById('kiwixfooter');
|
const footer = document.getElementById('kiwixfooter');
|
||||||
|
const fadeOutDiv = document.getElementsByClassName('fadeOut')[0];
|
||||||
if (footer.style.display === 'none' && show) {
|
if (footer.style.display === 'none' && show) {
|
||||||
footer.style.display = 'block';
|
footer.style.display = 'block';
|
||||||
|
fadeOutDiv.style.display = 'none';
|
||||||
} else if (footer.style.display !== 'none' && !show) {
|
} else if (footer.style.display !== 'none' && !show) {
|
||||||
footer.style.display = 'none';
|
footer.style.display = 'none';
|
||||||
|
fadeOutDiv.style.display = 'block';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,8 +137,8 @@
|
||||||
border: 2px solid #f3f3f3;
|
border: 2px solid #f3f3f3;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border-top: 2px solid #3498db;
|
border-top: 2px solid #3498db;
|
||||||
width: 30px;
|
width: 50px;
|
||||||
height: 30px;
|
height: 50px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
-webkit-animation: spin 0.5s linear infinite; /* Safari */
|
-webkit-animation: spin 0.5s linear infinite; /* Safari */
|
||||||
animation: spin 2s linear infinite;
|
animation: spin 2s linear infinite;
|
||||||
|
@ -167,6 +167,15 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
.fadeOut {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1;
|
||||||
|
background: linear-gradient(180deg, #e8e8e8 50%, rgb(138, 137, 137) 100%);
|
||||||
|
height: 30px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="{{root}}/skin/isotope.pkgd.min.js" defer></script>
|
<script src="{{root}}/skin/isotope.pkgd.min.js" defer></script>
|
||||||
<script src="{{root}}/skin/categoryList.js"></script>
|
<script src="{{root}}/skin/categoryList.js"></script>
|
||||||
|
@ -190,7 +199,8 @@
|
||||||
<div class="kiwixHomeBody">
|
<div class="kiwixHomeBody">
|
||||||
<div class="book__list"></div>
|
<div class="book__list"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class=loader><div class="loader-spinner"></div></div>
|
<div class="loader"><div class="loader-spinner"></div></div>
|
||||||
<div id="kiwixfooter">Powered by <a href="https://kiwix.org">Kiwix</a></div>
|
<div id="kiwixfooter">Powered by <a href="https://kiwix.org">Kiwix</a></div>
|
||||||
|
<div class="fadeOut"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue