<i class="kx-icon kx-icon--size-xxxlarge 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": "xxxlarge"
}
  • 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

There are no notes for this item.