<i class="kx-icon kx-icon--size-tiny kx-process">
<svg class="kx-process__spinner" viewBox="0 0 50 50">
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="6"></circle>
</svg>
</i>
<i class="kx-icon{% if size %} kx-icon--size-{{ size }}{% endif %} kx-process">
<svg class="kx-process__spinner" viewBox="0 0 50 50">
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="6"></circle>
</svg>
</i>
{
"classes": null,
"size": "tiny"
}
-
Content:
// ========================================================================== // Component: loader // ========================================================================== @keyframes rotate { 100% { transform: rotate(360deg); } } @keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } } // Elements (children) // ========================================================================== .kx-process__spinner { position: absolute; height: 100%; width: 100%; top: 0; bottom: 0; left: 0; right: 0; margin: auto; transform-origin: center center; .path { stroke: $color-teal-06; stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; } } // Block (parent) // ========================================================================== .kx-process { position: relative; margin: 0 auto; background-size: 100% auto; background-position: center center; animation: rotate 2s linear infinite; &:before { content: ''; display: block; padding-top: 100%; } }
- URL: /components/raw/process/_process.scss
- Filesystem Path: src\components\01-process\_process.scss
- Size: 1.4 KB
- Handle: @process--tiny
- Variants (9): Tiny , Small , Base , Moderate , Medium , Large , Xlarge , Xxlarge , Xxxlarge
- Preview:
- Filesystem Path: src\components\01-process\process.njk
- Referenced by (25): @button, @button--link-as-btn, @button--btn-primary, @button--btn-secondary, @button--btn-flat, @button--btn-link, @button--btn-tiny, @button--btn-base, @button--btn-large, @button--btn-disabled-primary, @button--btn-disabled-secondary, @button--btn-disabled-flat, @button--btn-disabled-link, @button--btn-active-primary, @button--btn-active-secondary, @button--btn-active-flat, @button--btn-active-link, @button--btn-loading-primary, @button--btn-loading-secondary, @button--btn-loading-flat, @button--btn-loading-link, @button--icon-before-text, @button--icon-after-text, @button--icon-only, @button--fluid
There are no notes for this item.