Loading video...
Video Failed to Load
CSS Trick! ⭐️ You can animate your gradient borders by defining types for your custom properties with @ property 🔥 1. Define a property @ property --angle { syntax: ' '; /* 👈 type angle*/ inherits: true; initial-value: 0deg; } 2. Animate the value article { animation: rotate 2s... show more
258,625 views • 2 years ago •via X (Twitter)
11 Comments

Here's that @CodePen link! 🚀 (Which I may or may have not forgotten to post yesterday 👀) Got the "Final boss" border demo that people have been asking for tomorrow 🤞😅

I think with this and :has I'll be pretty happy for a while. If I get a :stuck for position: sticky I will dance in the street.

Now this really is something new to me.. banking this!

Succulent

Long time no see thnx

Oh wow that looks cool I need this ..thankuuuuuu

Yeah i tried it too to animate some buttons, works fine on nearly square items, as soon as you do more rectangle shapes, the animation seems to slow down on the corners and the shorts edges... Any tips on how to bypass that ? gg anyway !

Got jus' the thing you need 🤙

Sheesh

Which tool was that for showing separate layers?

Straight up CSS 🤙
