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

49 lines
1.2 KiB
Plaintext

{% assign content_type = content_type | default: 'body' %}
{% if content_type == 'body' %}
<div class="shx-loading-spinner-Container">
{% render 'shx-logo', class_name:"shx-loading-spinner-mainIcon", width:"200px"%}
</div>
{% elsif content_type == 'head' %}
<style>
@keyframes shx-spinner-pulse {
0% {
transform: scale(0.85);
}
50% {
transform: scale(1);
}
100% {
transform: scale(0.85);
}
}
.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 0.5s cubic-bezier( 0.59, 0.23, 0.28, 0.73) infinite;
filter: drop-shadow(0px 0px 5px rgba(255,255,255, 0.5));
}
</style>
{% endif %}