Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

the trick: CSS mask, ::before/::after, background-size, animation-delay, and translate 👇 happy holidays! 🤙🎄

103,896 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

JustCurious profil fotoğrafı
JustCurious1 yıl önce

This is too serious man 🙌🏾🙌🏾🙌🏾

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

squeezed in before the holidays kick 🤙 will hold back on posting demos and the likes for a few days 🎄 (but there's plenty in the backlog waiting 💀)

ΛNDRΞΛS MΛΤΤΞR profil fotoğrafı
ΛNDRΞΛS MΛΤΤΞR1 yıl önce

thank you 4 all your powerfull inspirations throughout the year! you‘re work is absolutely fantastic! merry christmas 🎄🇺🇦🙏🏻

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

merry christmas to you too 🙏🎄 you're more than welcome - here's to 2025

Gustavo profil fotoğrafı
Gustavo1 yıl önce

the trick: sorcery

Luis Sardon profil fotoğrafı
Luis Sardon1 yıl önce

Amazing! Happy holidays!

S4RAH profil fotoğrafı
S4RAH1 yıl önce

Very cool! Merry Christmas 🎄

PunGrumpy profil fotoğrafı
PunGrumpy1 yıl önce

Oh my gat

Gustav Ekerot profil fotoğrafı
Gustav Ekerot1 yıl önce

Nice one! happy holidays!

Ólafur Nils Sigurðsson profil fotoğrafı
Ólafur Nils Sigurðsson1 yıl önce

Happy holidays!

Benzer Videolar

CSS Trick! 🤙 You can create gradient borders on translucent elements using mask-clip and mask-composite with a pseudo-element 🔥 .gradient-border::after { mask-clip: padding-box, border-box; mask-composite: intersect; mask: linear-gradient(transparent, transparent), linear-gradient(white, white); } It's the same "Transparent border trick" from before. But, now you apply it to a pseudo-element 😎 The trick is to create a pseudo-element with a gradient background and then mask it so we only see the part we want, the border ✨ mask-clip defines the area affected by a mask. Similar to how you can define background-size. Using padding-box and border-box constrains the two masks. mask-composite is the magic part ✨ It defines a compositing operation for stacked mask layers. Using intersect means that the parts that overlap get replaced. And this seems to work in all browsers 🙌 As for the rest of the styles... – Make sure you set pointer-events: none on the pseudo-element – Make sure it fills the parent element. You can use position: absolute and inset: 0 – Make sure the background fills the space including the border-width. You can use calc to achieve that: --bg-size: calc(100% + (2px * var(--border))); background: var(--gradient) center center / var(--bg-size) var(--bg-size); That's it! 🚀 Gradient borders on translucent elements. You can set all the backdrop-filter: blur() you like! 😅 CodePen.IO link below! 👇

jhey ʕ•ᴥ•ʔ

269,847 görüntüleme • 2 yıl önce