Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

CSS Tip 📖 Use CSS shape-outside to wrap text around shapes .column--left .shape { float: right; shape-outside: circle(100px at 100% 50%)); }

486,204 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

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

Here's the @CodePen link! 🤙 The trick is to use 2 columns with two elements for shape-outside, a semi-circle for each column 📖 Then you can power it with custom properties as seen in the video above 😎

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

The only "caveat"? 👀 You're limited in how you use it. You need to split your content into columns manually 🙃 It doesn't play nice with column-count Not the end of the world though and would look nice on some landing pages etc. 🤙

Simon Vrachliotis profil fotoğrafı
Simon Vrachliotis2 yıl önce

Now make the DVD screen saver bouncing thing and the text wraps around it to let it pass

Dheeraj Purohit धीरज पुरोहित ⭕❗⭕ profil fotoğrafı
Dheeraj Purohit धीरज पुरोहित ⭕❗⭕2 yıl önce

Woah 😲✨ Is it all static elements(2 cols and circle) , I mean by position

𝑨𝒏𝒂𝒕𝒉𝒆𝒎𝒂 profil fotoğrafı
𝑨𝒏𝒂𝒕𝒉𝒆𝒎𝒂2 yıl önce

Bro nailed it

Airem profil fotoğrafı
Airem2 yıl önce

Shape-outside ? CSS is insane. What's left to add ?

Baiee profil fotoğrafı
Baiee2 yıl önce

service 🔥

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

Should change my bio 😅 "Demos as a service" "Tag me and demos will follow"

𝐑𝐮𝐬𝐬 🖤 profil fotoğrafı
𝐑𝐮𝐬𝐬 🖤2 yıl önce

I wonder if it works with images, I could see some cool stuff being created with this.

Luke Martin profil fotoğrafı
Luke Martin2 yıl önce

Seeing float

Benzer Videolar