Animated Gradient Border Ring

A rotating sweep-gradient ring around a card, chip or button, built from a clipped box, a full-size gradient and an opaque inset surface parked on its middle — where the modifier order is the whole mechanism and no blend mode is involved — plus why the SrcIn-inside-an-offscreen-layer version of this cannot draw a ring, and what that layer costs. Use when the gradient covers the whole surface instead of the border, when the ring is invisible, when it bleeds over whatever is behind the widget, or when a row of them makes scrolling expensive.

maxrave-dev 5019acd 7.9 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/animated-gradient-border-ring commit 5019acd518

Frequently asked questions

npx skillmds@latest add maxrave-dev/animated-gradient-border-ring