Matt Montenegro's Backstage

Gradient border by rotating one layer

by @jh3yy · · UI/UX

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