Skip to content
Back to the feed
0:001:11
Rank#74

Post by jhey ʕ•ᴥ•ʔ

Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yy

Open on X

CSS Tip! ✨ You can use CSS container query units in your animations to create this glowy border button effect! 🎬 Watch the video for the exploding view breakdown 👀 @​keyframes slide { to { translate: calc(100cqw - 100%) 0; } } .glows { container-type: size; } The "trick"

Why it is here

A glowing border button animated with container query units, with an exploded view showing how it works.

Likes
1,9151.9K
Replies
17
All-time rank
#74
Week
W442023
Went viral
Posted on X
Web#css#container-queries#button

The digest

Get posts like this in your inbox every morning.

Get Pro
See the category
Post by Andrew Prifer (is hiring): Dear frontend devs and UI designers. I bring you Liquid DOM, a complete and faithful implementation of Liquid Glass on t
0:34
AH

Andrew Prifer (is hiring)

@AndrewPriferWeb

Likes:8.2K
Post by Aiden Bai: Introducing React Scan:

A drop in script to scan your React app for slow performance and renders

Try it now - it's ope
0:09
AB

Aiden Bai

@aidenybaiWeb

Likes:5.5K
Post by jhey ʕ•ᴥ•ʔ: CSS Tip! 🤙

You can create this magnetic :hover effect with CSS anchor positioning, :has, and zero JS 🔥

article { anc
0:26
Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yyInteraction

Likes:4.8K
Post by jhey ʕ•ᴥ•ʔ: View Transitions with CSS linear() to create a light flicker effect 💡
0:35
Jʔ

jhey ʕ•ᴥ•ʔ

@jh3yyWeb

Likes:4.1K