Process

<!-- Tiny -->
<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>

<!-- Small -->
<i class="kx-icon kx-icon--size-small 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>

<!-- Base -->
<i class="kx-icon kx-icon--size-base 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>

<!-- Moderate -->
<i class="kx-icon kx-icon--size-moderate 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>

<!-- Medium -->
<i class="kx-icon kx-icon--size-medium 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>

<!-- Large -->
<i class="kx-icon kx-icon--size-large 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>

<!-- Xlarge -->
<i class="kx-icon kx-icon--size-xlarge 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>

<!-- Xxlarge -->
<i class="kx-icon kx-icon--size-xxlarge 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>

<!-- Xxxlarge -->
<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>
/* Tiny */
{
  "classes": null,
  "size": "tiny"
}

/* Small */
{
  "classes": null,
  "size": "small"
}

/* Base */
{
  "classes": null,
  "size": "base"
}

/* Moderate */
{
  "classes": null,
  "size": "moderate"
}

/* Medium */
{
  "classes": null,
  "size": "medium"
}

/* Large */
{
  "classes": null,
  "size": "large"
}

/* Xlarge */
{
  "classes": null,
  "size": "xlarge"
}

/* Xxlarge */
{
  "classes": null,
  "size": "xxlarge"
}

/* Xxxlarge */
{
  "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.