SHX-Theme/snippets/shx-loading-spinner.liquid

45 lines
1.1 KiB
Plaintext

{% assign content_type = content_type | default: 'body' %}
{% if content_type == 'body' %}
<div class="shx-loading-spinner-Container">
{% render 'shx-logo', class:"shx-loading-spinner-mainIcon", width:"200px"%}
</div>
{% elsif content_type == 'head' %}
<style>
@keyframes shx-spinner-pulse {
0% {
transform: scale(0.95);
}
50% {
transform: scale(1);
}
100% {
transform: scale(0.95);
}
}
.shx-loading-spinner-Container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.2);
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
backdrop-filter: blur(10px);
}
.shx-loading-spinner-mainIcon {
animation: shx-spinner-pulse 2s linear infinite;
}
</style>
{% endif %}