Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

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 😎

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

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. 🤙

Profilbild von Simon Vrachliotis
Simon Vrachliotisvor 2 Jahren

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

Profilbild von Dheeraj Purohit धीरज पुरोहित ⭕❗⭕
Dheeraj Purohit धीरज पुरोहित ⭕❗⭕vor 2 Jahren

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

Profilbild von 𝑨𝒏𝒂𝒕𝒉𝒆𝒎𝒂
𝑨𝒏𝒂𝒕𝒉𝒆𝒎𝒂vor 2 Jahren

Bro nailed it

Profilbild von Airem
Airemvor 2 Jahren

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

Profilbild von Baiee
Baieevor 2 Jahren

service 🔥

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

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

Profilbild von 𝐑𝐮𝐬𝐬 🖤
𝐑𝐮𝐬𝐬 🖤vor 2 Jahren

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

Profilbild von Luke Martin
Luke Martinvor 2 Jahren

Seeing float

Ähnliche Videos