Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

don't sleep on using CSS counters for counting your content 👨‍🍳 section::before { content: counters(section,'',pad)'.'counters(content,'',pad) } /* 01.04 */ @​counter-style pad { system: extends decimal; pad: 2 '0'; } check it! 👇

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

10 Yorum

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

this is kinda hard to get a video of so might be worth a little breakdown demo 🤔 but using CSS to count your content means you don't have to bake numbered headings into your content swap the content order? no issue pad the numbers? no problem, use a counter style 🤙

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

had some questions about this one so made a breakdown demo 🤙 should help explain things 🧑‍🍳

Better Bedder profil fotoğrafı
Better Bedder1 yıl önce

As seen on Shark Tank: Never lift your heavy mattress to change sheets. Use this headband that wraps around your bed.

Cory Simmons profil fotoğrafı
Cory Simmons1 yıl önce

I always suspected you could do some crazy ish with counters but never really dug into it.

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

gonna spin up a clearer demo because I realise this is quite hard to follow 😅

artTILT profil fotoğrafı
artTILT1 yıl önce

Clean.

CG profil fotoğrafı
CG1 yıl önce

this slaps. when everyone is going very like rounded i like the sharp edges and the 1 in the corner. looks dope

🇫🇷Guillaume Tell - Fullstack dev🇫🇷 τ/acc profil fotoğrafı
🇫🇷Guillaume Tell - Fullstack dev🇫🇷 τ/acc1 yıl önce

I understand nothing 🤣 wtf is that css property 😱

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

jus' built a new demo to help explain it 🙏

oluwasefunmi profil fotoğrafı
oluwasefunmi1 yıl önce

This is so crazy that I have literally never seen this feature before And it's baseline!

Benzer Videolar