diff --git a/packages/connect-button/src/assets/icon-loading.svg b/packages/connect-button/src/assets/icon-loading.svg index 73f37bdb..9f4e88b5 100644 --- a/packages/connect-button/src/assets/icon-loading.svg +++ b/packages/connect-button/src/assets/icon-loading.svg @@ -1,2 +1,5 @@ - \ No newline at end of file + + + + \ No newline at end of file diff --git a/packages/connect-button/src/components/card/card.ts b/packages/connect-button/src/components/card/card.ts index 53a2d86f..83224f55 100644 --- a/packages/connect-button/src/components/card/card.ts +++ b/packages/connect-button/src/components/card/card.ts @@ -119,6 +119,14 @@ export class RadixCard extends LitElement { mask-image: url(${unsafeCSS(IconLoading)}); width: 24px; height: 24px; + transform-origin: center; + animation: spinner 0.75s infinite linear; + } + + @keyframes spinner { + 100% { + transform: rotate(360deg); + } } :host([icon='ignored']) i::before {