/Click feedback
Click feedback • CSS
Orange Circle Fill Button
An orange outlined pill that fills from a growing circle.
Installation
Terminal
npx shadcn@latest add https://microkit.co/r/orange-circle-fill-button.jsonCode
TypeScript component
1export function OrangeCircleFillButton() {2return <button type="button" className="orange-circle-fill-button"><span>View all projects</span><span aria-hidden="true" /></button>;3}
CSS
1.orange-circle-fill-button {2position: relative;3display: inline-flex;4align-items: center;5justify-content: center;6overflow: hidden;7border: 1px solid #f97316;8border-radius: 999px;9background: #f973162b;10padding: 16px 24px;11color: #f97316;12cursor: pointer;13transition: transform .5s cubic-bezier(.16, 1, .3, 1);14}15.orange-circle-fill-button > span:first-child {16position: relative;17z-index: 1;18font-size: 18px;19font-weight: 500;20transition: color .3s ease;21}22.orange-circle-fill-button > span:last-child {23position: absolute;24width: 240px;25height: 240px;26border-radius: 50%;27background: #f97316;28transform: scale(0);29transition: transform .5s cubic-bezier(.16, 1, .3, 1);30}31.orange-circle-fill-button:hover, .orange-circle-fill-button:focus-visible {32transform: scale(1.06);33}34.orange-circle-fill-button:hover > span:first-child, .orange-circle-fill-button:focus-visible > span:first-child {35color: #111;36}37.orange-circle-fill-button:hover > span:last-child, .orange-circle-fill-button:focus-visible > span:last-child {38transform: scale(1);39}40.orange-circle-fill-button:focus-visible {41outline: 2px solid #f97316;42outline-offset: 4px;43}