mirror of https://gitlab.com/brutaldon/brutaldon
Improve the page loading indicator
This commit is contained in:
parent
c92c28b55a
commit
8963f5d1d0
|
@ -136,17 +136,34 @@ emoji-link
|
|||
#page-load-indicator
|
||||
{
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: #4CC;
|
||||
opacity: 0.8;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 666;
|
||||
transition: all 500ms;
|
||||
height: 4px;
|
||||
overflow: hidden;
|
||||
background-color: #ddd;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#page-load-indicator.ic-use-transition
|
||||
{
|
||||
width:0;
|
||||
#page-load-indicator:before{
|
||||
display: block;
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: -200px;
|
||||
width: 200px;
|
||||
height: 4px;
|
||||
background-color: #2980b9;
|
||||
animation: page-loading 1.5s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes page-loading {
|
||||
from {left: -200px; width: 30%;}
|
||||
50% {width: 30%;}
|
||||
70% {width: 70%;}
|
||||
80% { left: 50%;}
|
||||
95% {left: 120%;}
|
||||
to {left: 100%;}
|
||||
}
|
||||
|
|
|
@ -107,17 +107,34 @@ emoji-link
|
|||
#page-load-indicator
|
||||
{
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: #4CC;
|
||||
opacity: 0.8;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 666;
|
||||
transition: all 500ms;
|
||||
height: 4px;
|
||||
overflow: hidden;
|
||||
background-color: #ddd;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#page-load-indicator.ic-use-transition
|
||||
{
|
||||
width:0;
|
||||
#page-load-indicator:before{
|
||||
display: block;
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: -200px;
|
||||
width: 200px;
|
||||
height: 4px;
|
||||
background-color: #2980b9;
|
||||
animation: page-loading 1.5s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes page-loading {
|
||||
from {left: -200px; width: 30%;}
|
||||
50% {width: 30%;}
|
||||
70% {width: 70%;}
|
||||
80% { left: 50%;}
|
||||
95% {left: 120%;}
|
||||
to {left: 100%;}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
{% endif %}
|
||||
</nav>
|
||||
{% endblock %}
|
||||
<div id="page-load-indicator" class="ic-use-transition"> </div>
|
||||
<div id="page-load-indicator"> </div>
|
||||
<section id="main" class="section" ic-history-elt="true">
|
||||
<div class="container">
|
||||
{% block content %}
|
||||
|
|
Loading…
Reference in New Issue