From: Ardis Lu Date: Sun, 6 Feb 2022 01:14:07 +0000 (-0800) Subject: Add icon-button X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=cec582c84777437066ca8c4c23d6fe5267c8c2a2;p=css-loaders Add icon-button --- diff --git a/index.html b/index.html index cc6c76f..41cede6 100644 --- a/index.html +++ b/index.html @@ -82,6 +82,22 @@ animation: spin 1s infinite; } + .icon-button { + display: inline; + height: 24px; + width: 24px; + margin: 0; + padding: 0; + border: 0; + background: none; + } + + .icon-button:hover, + .icon-button:focus { + cursor: pointer; + animation: spin 0.2s linear 1; + } + /* Dividers */ @keyframes shiftRight { @@ -138,6 +154,16 @@

Some p text next to an inline-spinner:

+ +

Inline refresh icon button with rotation on hover or focus: + +