A div that has a scooped out top left and bottom right corners, a notched top right corner, and a round bottom left corner.
A dive the looks a bit like a L that has been rotated 180deg
A div with a top left round corner, and a scoopped bottom right corner
A very strange looking shape. Almost like a circus tent, but with an extra rectangle added to the bottom right corner.
I remember how excited I was when border-radius became a thing... If only I'd know what would eventually be possible with it about 15 years later 😅
corner-shape takes border-radius to an all new level...
@cbolson.bsky.social has made a handy generator for it: www.corner-shape.com
31.10.2025 18:38 — 👍 91 🔁 12 💬 7 📌 1
One of my favorite recent pens - Custom Curved Scrollbars that follow the border radius of their container.
See the full demo on @codepen.io
codepen.io/cbolson/pen/...
#codepen,#scrollbar
28.10.2025 20:07 — 👍 0 🔁 0 💬 0 📌 0
Testing out the experimental CSS ::scroll-* pseudo elements to create interactive carousels with no JavaScript.
This demo pushes the idea by not even appearing to scroll. I have added a toggle to let you see the invisible scrolling elements.
See the demo on #codepen
codepen.io/cbolson/full...
04.10.2025 13:04 — 👍 0 🔁 0 💬 0 📌 0
Returning to your original question, aren't seconds or milliseconds the only valid units for keyframe animations?
03.10.2025 20:32 — 👍 0 🔁 0 💬 0 📌 0
They are valid units so calc() doesn't have an issue with them.
So, as they are the same unit, calc() is cancelling them out to give 0.5, just as calc(5px / 10px) will also return 0.5
On the other hand calc(5px / 10hz) will fail as the units are not compatible (at least it does in my tests)
03.10.2025 20:25 — 👍 0 🔁 0 💬 1 📌 0
Are the CSS frequency units Hz and kHz still supported?
MDN suggests not.
03.10.2025 11:50 — 👍 0 🔁 0 💬 1 📌 0
{⚔️} Day 166 of #CSSBattleDaily
I had a bit of fun with todays daily target 😂
cssbattle.dev/play/S777cDY... #CSSBattleChallenge via @cssbattle.dev
12.09.2025 18:25 — 👍 3 🔁 1 💬 0 📌 0
Using modern CSS functions to do math.
This uses attr() to get the values, if() to define the operation and function() to actually do the math. No JS.
See the code on #codepen
codepen.io/cbolson/pen/...
02.09.2025 16:41 — 👍 0 🔁 0 💬 1 📌 0
Using the CSS attr() function to define grid areas via data attributes.
See the code on #codepen
codepen.io/cbolson/pen/...
25.08.2025 20:47 — 👍 1 🔁 0 💬 0 📌 0
A digital countdown using styled range sliders.
Not very useful but fun to create.
See the full demo on #codepen
codepen.io/cbolson/pen/...
23.08.2025 20:32 — 👍 1 🔁 0 💬 0 📌 0
This hamburger icon menu expands from the corner and uses sibling-count() and sibling-index() to calculate the position of each button.
See the full code on #codepen
codepen.io/cbolson/pen/...
21.08.2025 20:44 — 👍 7 🔁 0 💬 0 📌 0
A modern Scrollspy using scroll-target-group and :target-current
See the demo on @codepen.io !
codepen.io/cbolson/pen/... #CodePen #CSS
20.08.2025 19:58 — 👍 0 🔁 0 💬 0 📌 0
Another demo using the CSS attr() function.
This one uses data attributes to define the percentages in a pie-chart.
See the full code on #codepen
codepen.io/cbolson/pen/...
15.08.2025 17:40 — 👍 1 🔁 0 💬 0 📌 0
Using the new attr() CSS function to define the target number and duration of a counter. No JS required.
See the full code on #codepen
codepen.io/cbolson/pen/...
14.08.2025 19:32 — 👍 0 🔁 0 💬 0 📌 0
Another demo using sibling-index() to delay the animation.
See the code on #codepen
codepen.io/cbolson/pen/...
13.08.2025 20:03 — 👍 0 🔁 0 💬 0 📌 0
I have now added more sliders to be able to control the second border-radius property. It can now generate even more interesting shapes!
09.08.2025 17:35 — 👍 0 🔁 0 💬 0 📌 0
An interactive demo of how corner-shape: superellipse() can be used to fine-tune the corners.
(Chrome only at the moment)
Full code on
@codepen.io
codepen.io/cbolson/pen/...
08.08.2025 20:13 — 👍 0 🔁 0 💬 1 📌 0
Experimenting with corner-shape, using the "bevel" value create hexagon avatars.
See the full code on #codepen
codepen.io/cbolson/pen/...
07.08.2025 17:11 — 👍 0 🔁 0 💬 0 📌 0
I'd love one if you can ship to 🇪🇸 😅
06.08.2025 19:13 — 👍 0 🔁 0 💬 1 📌 0
I can't wait for sibling-count() and sibling-index() to go baseline. They have so much potential!
In this demo I use them to dynamically calculate the position of the elements depending on the total number of elements and their index.
See the code on #codepen codepen.io/cbolson/full...
06.08.2025 18:20 — 👍 0 🔁 0 💬 0 📌 0
I'm not sure happened to the preview image on that one so here is a short video capture
22.05.2025 13:50 — 👍 0 🔁 0 💬 0 📌 0
CSSBattle
The funnest CSS game for web designers & developers
Finally managed to get in the top 10 on a #CSSBattleDaily with my best ever score of 720.37 😅
cssbattle.dev/play/e5B6sph...
05.05.2025 09:44 — 👍 1 🔁 0 💬 0 📌 0
I will admit that it always makes my day when I get one of my pens featured in the @codepen.io Spark newsletter.
😀
codepen.io/spark/437
26.03.2025 19:43 — 👍 0 🔁 0 💬 0 📌 0
I watched the first few minutes of this and paused it to be able to have a go at it myself without being influenced by their code or by the original code on Toni Lijic's website.
See the code on @CodePen
here:
codepen.io/cbolson/pen/...
Pure CSS, no JavaScript required
06.01.2025 16:24 — 👍 6 🔁 1 💬 1 📌 0
YouTube
Share your videos with friends, family, and the world
🔴 LIVE — @chriscoyier.net and I are reverse engineering a cool feature from Toni Lijic's site. come learn some complex CSS with me!
www.youtube.com/live/An3QMWg...
02.01.2025 17:29 — 👍 24 🔁 4 💬 1 📌 2
A CSS countdown to 2025 (with a dash of JS at the end).
Happy New Year everyone 🎉
See the code on @CodePen
codepen.io/cbolson/full...
31.12.2024 16:21 — 👍 0 🔁 0 💬 0 📌 0
Using animation-timeline to reveal the text.
One of my entries in #codepenchallenge last week.
See the code on @codepen.io
codepen.io/cbolson/pen/...
02.12.2024 20:26 — 👍 0 🔁 0 💬 0 📌 0
To celebrate reaching 500 followers on @codepen.io, I created a Pen dedicated to each one of my 500 followers.
Thanks for the follow 👍
codepen.io/cbolson/pen/...
27.11.2024 16:44 — 👍 0 🔁 0 💬 0 📌 0
One of my favourites from a few months ago.
I have just updated the code a bit to simplify the CSS, making better use of custom properties.
I have also added a container query to make it easier to test responsiveness.
See the full code on @codepen.io
codepen.io/cbolson/pen/...
20.11.2024 21:14 — 👍 0 🔁 0 💬 0 📌 0
• Designer. Kantro Design.
• Meta Reality Labs, Uber, Live Nation in the rear view.
• Co-founder of Bigeye, Pinna (RIP)
• Opinionated, sarcastic New Yorker
kantro.design
Mayor @ The Admin Bar, voted the #1 Community for WordPress 👑
Owner @ OGAL Web Design where I make performance-focused websites ⚡
Web developer 👩🏻💻
github.com/amr3k
Trying to stay anonymous. Other stuff on other accounts. Likes aren’t necessarily endorsements; I also use the like button to help with my awful memory (like Bookmark lite) or to avoid losing my place when refreshing. 匿名希望の主に情報収集用のアカウント
Founder at: @piccalil.li and @set.studio
Complete CSS Course: https://complete-css.com
CSS Book: https://every-layout.dev
Newsletter: https://piccalil.li/the-index/
🔗 https://bell.bz/links/
🌐 https://bell.bz
🌍 Cheltenham, UK
Design Lead at UK Government Digital Service
Projects include Register to Vote, Petition Parliament, GovWifi and the GOV.UK Prototype Kit
https://joelanman.com
Founder/organiser of beyond tellerrand (@beyondtellerrand.com). Co-Founder of Smashing Conference.
Graphic designer, on my way to frontend development
Full-stack developer with 10+ years of experience interested in #JavaScript #swift #iOS and #Design. I’m also a #raspberrypi ambassador.
Diving into becoming an #indiedeveloper by making apps as a hobby.
📍currently based in #andorra
💻 Indie Dev from Canada 🇨🇦
🎮 Love video game
🎨 Future pixel artist?
Frontend Dev | Self-proclaimed CSS wizard | Bad at naming variables | #100devs
"𝑇ℎ𝑒 𝑎𝑛𝑠𝑤𝑒𝑟 𝑡𝑜 𝑎𝑙𝑙 𝑜𝑓 𝑙𝑖𝑓𝑒’𝑠 𝑝𝑟𝑜𝑏𝑙𝑒𝑚𝑠… 𝑖𝑠 𝑝𝑟𝑜𝑏𝑎𝑏𝑙𝑦 𝑎 ℎ𝑎𝑠ℎ 𝑚𝑎𝑝"
garciadev.netlify.app
I make things for making things.
@leaverou@front-end.social on Mastodon, @leaverou elsewhere
https://lea.verou.me
Chrome DevRel at Google (CSS + Web UI + DevTools). CSSWG Member. PADI Divemaster. Blogs at bram.us. Lives in Belgium.
Web 🥔 building the tools to empower others.
Creator of https://xoram.dev
Apple Evangelist on the Web Developer Experience team for Safari & Webkit. #PwME
Funnest CSS game for web devs and web designers! Made by @kushagra.dev & @kush.im!
Discord: https://discord.gg/rvqvbcFM86
Forum: http://community.cssbattle.dev ❯ Hashtag: #CSSBattleChallenge
Level up your front-end skills. Stay for the approachable, friendly content and go away with transferable skills you can use day to day.
https://piccalil.li
#CSS ex-Google Chrome DevRel, CSSWG, co-host The CSS Podcast, host @ GUI Challenges, co-host Bad@CSS Podcast.
Creator of VisBug, open-props.style, gradient.style, transition.style & more
UI, UX, CSS, HTML, JS
https://nerdy.dev