Gradient border by rotating one layer

Jhey suggests border masks, layers and hidden overflow for a visual effect, preferring to rotate a square layer over animating the gradient itself. A technical reference for motion in interfaces; effect and code not tested.
Post text
you can totally do it with css 🧑🍳 use a border mask, layers + overflow: hidden, or other tricks skip animating the gradient though, jus' spin a 1:1 gradient layer 🤙
Open the post on X ↗Open in the archive
Similar references
- Animated dots in SwiftUI and Metal · @sucodeee
- AnimateView in Motion 13.4 · @Victorspacheco_
- HTML text rendered in WebGPU · Evil Rabbit
- Experiments in Framer · @tonjrv
- Onboarding with real cases in motion · @oykun
- IconFlow: animated icons with AI · @tranmautritam