CodePen's Avatar

CodePen

@codepen.io

Build, test, and discover front-end code πŸ’» https://codepen.io Support: https://codepen.io/support

3,133
Followers
79
Following
295
Posts
09.05.2023
Joined
Posts Following

Latest posts by CodePen @codepen.io

Video thumbnail

codepen.io/beta

06.03.2026 20:15 πŸ‘ 57 πŸ” 21 πŸ’¬ 2 πŸ“Œ 7
Video thumbnail

Amazing how we went from not being able to style selects, to doing things like this with them codepen.io/editor/cbols... (and this codepen.io/t_afif/pen/P...)

06.03.2026 13:18 πŸ‘ 101 πŸ” 15 πŸ’¬ 7 πŸ“Œ 2
Video thumbnail

The 2026 F1 season is here 🏁

So I built another experimental custom <select> β€” this time featuring F1 drivers.

See the demo on @codepen.io
codepen.io/editor/cbols...

05.03.2026 21:52 πŸ‘ 46 πŸ” 7 πŸ’¬ 1 πŸ“Œ 1
Video thumbnail

Think you’re looking down a long corridor?!... Think again.

An optical illusion in pure #CSS. 😡
Inspired by the amazing work of @akiyoshikitaoka.bsky.social

Live demo on @codepen.io: codepen.io/editor/amit_...

05.03.2026 16:08 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Build your bracket for the world's first ever CSS tournament, March MadCSS.

Premieres Friday 10ET on YouTube, and the stakes are high.

win over $1,500 worth of prizes madcss.com

04.03.2026 20:46 πŸ‘ 56 πŸ” 18 πŸ’¬ 4 πŸ“Œ 7

Soon across all browsers: CSS contrast-color()!

It returns a color that has guaranteed contrast against an other color.

Very useful for computing text color with enough contrast against an unknown background.

Demo ➑️ codepen.io/captainbross...
Docs ➑️ developer.mozilla.org/en-US/docs/W...

04.03.2026 14:26 πŸ‘ 21 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
To demonstrate the opposite nature of the colors orange and blue, an orange pencil lays on the blue half, and a blue pencil lays on the orange half, of a  diagonally divided blue and orange ground.

To demonstrate the opposite nature of the colors orange and blue, an orange pencil lays on the blue half, and a blue pencil lays on the orange half, of a diagonally divided blue and orange ground.

The March CodePen Challenge is on!
This month, we're working with front-end opposites
codepen.io/challenges/2...

03.03.2026 18:31 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

team i'm FIRED UP about these gnarly gotchas with Anchor Positioning in CSS.

02.03.2026 22:28 πŸ‘ 65 πŸ” 9 πŸ’¬ 3 πŸ“Œ 2
Preview
Arc plotter An interactive, parametric exploration inspired by Sol LeWitt’s Wall Drawing 1136. LeWitt’s work often focused on the execution of simple rules to crea...

codepen.io/shubniggurat...

02.03.2026 20:24 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

CSS shape() landed in Firefox 148. It's similar to path(), but allows the full expressiveness of CSS…

02.03.2026 15:07 πŸ‘ 151 πŸ” 24 πŸ’¬ 8 πŸ“Œ 3
Video thumbnail

"OctaVase" by Paul

codepen.io/prisoner849/...

02.03.2026 16:32 πŸ‘ 6 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Native Random Values in CSS The CSS Working Group has published the Values and Units Module Level 5, which introduces native mechanisms for generating random content using only CSS. This is the tl;dr of a longer article explorin...

CSS is getting native randomness 🎲

random() and random-item() are coming with:

- per-element randomness
- step-based ranges
- shared value options
- zero JS required

I wrote an overview of the feature, how it works, and what browsers support it.

alvaromontoro.com/blog/68092/n...

#css #webdev

27.02.2026 16:02 πŸ‘ 46 πŸ” 11 πŸ’¬ 3 πŸ“Œ 1
Video thumbnail

"Page flip!" by Liam Egan

codepen.io/shubniggurat...

26.02.2026 22:16 πŸ‘ 12 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
CSS is too powerful now
CSS is too powerful now YouTube video by Kevin Powell

Most comments are just impressed, but there was a small wave of people complaining about how CSS shouldn't be able to do this, and that it should be for *styling* only (emphasis theirs).

The thing is... all this simply opens the doors to styling in more robust ways.

youtu.be/Y-3tPDZCk2o

25.02.2026 21:26 πŸ‘ 62 πŸ” 11 πŸ’¬ 11 πŸ“Œ 1
A multicolor gradient reminiscent of a sunset with blues, golds, and pinks.

A multicolor gradient reminiscent of a sunset with blues, golds, and pinks.

It's the final week of the February CodePen Challenge!
Let's play with new colors 🎨
codepen.io/challenges/2...

24.02.2026 17:09 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

AIM (Anchor Interpolated Morph) is a pretty cool idea from Adam.
argyle.ink/anchor-inter...

Here I'm using it for a [popover]-powered image gallery where the thumbnails open full-size images. They animate from where they were, and close back to where the were as well.

24.02.2026 17:00 πŸ‘ 27 πŸ” 3 πŸ’¬ 1 πŸ“Œ 0

Officially shipping in Chrome 147 πŸŽ‰

23.02.2026 20:40 πŸ‘ 97 πŸ” 8 πŸ’¬ 2 πŸ“Œ 0
Video thumbnail

Out with :nth-child(), in with :sibling-index()! Just so satisfying to use.

* no Firefox yet

23.02.2026 20:39 πŸ‘ 146 πŸ” 19 πŸ’¬ 5 πŸ“Œ 5
Preview
aria-haspopup might not do what you think it does - Manuel Matuzovic I'm a frontend developer in Graz, specialized in HTML, accessibility, and CSS layout and architecture.

To kick off my new article series, #WebAccessibilityFails, I decided to focus on a bad practice I often see in main navigations during accessibility audits.

matuzo.at/blog/2026/ar...

23.02.2026 18:59 πŸ‘ 25 πŸ” 8 πŸ’¬ 0 πŸ“Œ 1

First time I am using the @codepen.io V2 in that article πŸ‘‡

I no longer need to create a new pen for each tiny CSS change. One pen can hold all my demos with one CSS file.

With my PRO account, I can have up to 50 demos! πŸ˜€

codepen.io/beta

20.02.2026 19:32 πŸ‘ 16 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

"Chicky" by Takane Ichinose

codepen.io/takaneichino...

20.02.2026 22:16 πŸ‘ 5 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
una.im | border-shape: the future of the non-rectangular web Learn about new geometry capabilities with this game-changing experimental CSS feature.

I've been experimenting with an upcoming CSS feature called border-shape lately.

It's really cool what you can do with it: lots of practical applications + it opens a lot of doors for non-rectangular UIs!

Try it in Canary w/experimental web platform features on, & read more:

una.im/border-shape

19.02.2026 22:06 πŸ‘ 122 πŸ” 33 πŸ’¬ 10 πŸ“Œ 5

A few recent additions to the ol' Almanac to distract you on this lovely Friday:

❋ The sign() function
css-tricks.com/almanac/func...

❋ The progress() function
css-tricks.com/almanac/func...

❋ The abs() Function
css-tricks.com/almanac/func...

That progress() one... just wild.

20.02.2026 14:58 πŸ‘ 4 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

"Data Tunnel - Three.js" by Sabo Sugi

codepen.io/sabosugi/pen...

19.02.2026 22:16 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Preview
The corner cases of implementing CSS corner-shape in Blink Β |Β  Blog Β |Β  Chrome for Developers Learn about the complexity of implementing the corner-shape feature.

Blog post: some inner workings of implementing CSS corner-shape in Blink.

@developer.chrome.com

developer.chrome.com/blog/impleme...

19.02.2026 13:56 πŸ‘ 17 πŸ” 4 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

Magnetic lines. Canvas. Spring physics.
All vibes.

Inspired by a linear billboard.

18.02.2026 11:14 πŸ‘ 8 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

"Picket fence animation using scroll animations" by Chris Bolson

codepen.io/cbolson/pen/...

17.02.2026 22:16 πŸ‘ 7 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

In graph theory, there are algorithms that find the shortest path between two nodes. I made one with pure CSS (including the graph drawing).

Drag the nodes, and the shortest path will update in real-time!

css-tip.com/graph-theory/

A fun demo powered by all the modern & cool CSS features 🀩

16.02.2026 15:30 πŸ‘ 122 πŸ” 23 πŸ’¬ 9 πŸ“Œ 5
A person mixing different colors of paint on an artist's palette.

A person mixing different colors of paint on an artist's palette.

The February CodePen Challenge continues!
This week, we're mixing and blending colors 🎨
codepen.io/challenges/2...

16.02.2026 19:16 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 2
Preview
Style Headings using the CSS :heading pseudo-class Use the :heading pseudo-class to style all headings (h1-h6) with a single CSS rule. Reduce repetition in design systems and component libraries while maintaining consistency.

πŸŽ‰ New Blogpost πŸŽ‰

Style Headings using the CSS :heading pseudo-class

CSS just got tidier.

Say goodbye to verbose selector groups and hello to cleaner, more intentional styling for your design systems.

www.alwaystwisted.com/articles/sty...

#CSS #WebDev #FrontEnd #WebDesigin

16.02.2026 12:32 πŸ‘ 60 πŸ” 18 πŸ’¬ 5 πŸ“Œ 3