import { html, css } from 'lit'; import { LionProgressIndicator } from '@lion/ui/progress-indicator.js'; export class MyIndeterminateProgressSpinner extends LionProgressIndicator { static get styles() { return [ css` .progress__icon { display: inline-block; width: 48px; height: 48px; animation: spinner-rotate 2s linear infinite; } .progress__filled { animation: spinner-dash 1.35s ease-in-out infinite; fill: none; stroke-width: 6px; stroke: var(--primary-color); } @keyframes spinner-rotate { to { transform: rotate(360deg); } } @keyframes spinner-dash { 0% { stroke-dasharray: 6, 122; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100, 28; stroke-dashoffset: -16; } 100% { stroke-dasharray: 6, 122; stroke-dashoffset: -127; } } `, ]; } _graphicTemplate() { return html` `; } } customElements.define('my-indeterminate-progress-spinner', MyIndeterminateProgressSpinner);