CodePen
@codepen.io
2.8K followers 74 following 210 posts
Build, test, and discover front-end code 💻 https://codepen.io Support: https://codepen.io/support
Posts Media Videos Starter Packs
Reposted by CodePen
css-only.dev
💡 CSS Tip!

A simple line of modern CSS to create a conditional Border Radius. The value will adjust based on either the container width or screen width.

css-tip.com/conditional-...

cc @ishadeed.com @una.im
The following CSS code:
.box {
  border-radius: calc(sign(100cqi - 100%)*2rem);
}
codepen.io
"Halftone Reveal" by Robert Raichle

codepen.io/robertraichl...
Reposted by CodePen
jhey.dev
add to cart 🛒

configurable css + svg 👇
codepen.io
The October #CodePenChallenge is on!
It's Halloween Time 🎃
codepen.io/challenges/2...

Thanks @Redisinc for sponsoring: srv.buysellads.com/ads/long/x/T...
A slightly unsettling shadow of a large clockface looming over a grungy backdrop.
Reposted by CodePen
kevinpowell.co
Are you the type of dev who just copies and pastes hex codes?

If so, I've written an article over at @piccalil.li just for you!

I take a look at some of the new CSS colour features that are most useful for those who don't really care about colours.

piccalil.li/blog/a-pragm...
A pragmatic guide to modern CSS colours - part one
Whether you've got a firm grasp on modern CSS colour capabilities, or you're thinking 'I struggle to understand why I should use modern CSS colours at all', then the first part of this article series,...
piccalil.li
Reposted by CodePen
Reposted by CodePen
frontendmasters.com
Inset Shadows Directly on img Elements (Part 1)

Inset `box-shadow` doesn't work directly on . There are work-arounds, but this SVG filter can do it directly.

Don't run! There is powerful stuff to learn here through interactive demos.
Inset Shadows Directly on img Elements (Part 1)
Inset `box-shadow` doesn't work directly on . There are work-arounds, but this SVG filter can do it directly. Don't run! There is powerful stuff to learn here through interactive demos.
frontendmasters.com
Reposted by CodePen
css-only.dev
Here is my idea with less of code

css-tip.com/tooltip-anch...

The trick is to play with the margin property to show/hide the arrows.

cc @una.im @bram.us
Reposted by CodePen
css-tricks.bsky.social
Love seeing updated work on the CSS `cross-fade()` and how it's evolving out of the legacy syntax from WebKit's implementation.

In short: Generate a single image outta two (or more!)

css-tricks.com/almanac/func...
cross-fade() | CSS-Tricks
The cross-fade() function lets you blend more than one image at a specified transparency value.
css-tricks.com
codepen.io
"Generative Copic Color Wheel" by David Aerne

codepen.io/meodai/pen/M...
codepen.io
> Weird Web October is a challenge to try and make a website every day of October, based on the theme for each day, inspired by Inktober. It’s open to you and everyone!

weirdweboctober.website

Go go!
Weird Web October
A challenge to try and make a website every day of October, based on the theme for each day
weirdweboctober.website
codepen.io
"3D text silhouette" by Pavel Boytchev

codepen.io/boytchev/pen...
codepen.io
"Monochrome Alphabet" by Josetxu

codepen.io/josetxu/pen/...
Reposted by CodePen
gemmacroad.bsky.social
I created this vintage colour theory poster for this weeks @codepen.io challenge! It's a loving tribute to those beautiful scientific colour wheel prints I was obsessed with as a child (and honestly still am)... 🥰 🌈

codepen.io/GemmaCroad/p...
CodePen Challenge: Color Wheel
A bit of a nod to the vintage style colour wheels I used to love as a child, and still do....
codepen.io
Reposted by CodePen
codepen.io
It's the final week of the September #CodePenChallenge
This week, let's spin the color wheel!

codepen.io/challenges/2...

Thanks @MongoDB for sponsoring: srv.buysellads.com/ads/long/x/T...
Paint color samples arranged by color in a wheel shape.
codepen.io
"❍ Interactive Mystery Card Hover Effect" by Filip Zrnzevic

codepen.io/filipz/pen/Q...
Reposted by CodePen
davatron5000.bsky.social
Thought a lot about Squircles today.

- To make a CSS squircle, the border-radius needs to be at-least half of the shortest side (or 9999px)
- Hard to progressively enhance without `style()` queries
- A CSS squircle is more like a stretched circle than a squished square

codepen.io/davatron5000...
Thinking in Squircles
...
codepen.io
Reposted by CodePen
stephaniewalter.bsky.social
How many HTML tags can you remember? No cheating!
By Paul Foster

codepen.io/plfstr/full/...
Screenshot of a webpage titled HTML Tags Memory Test, with a blue background, a text field labeled Tag for entering guesses, and a numbered list of 45 recalled HTML tags including dl, dt, html, body, head, footer, div, p, h1 to h6, strong, em, link, and table.
codepen.io
"Avatar Indicators, using CSS Mask / Trig" by Simon Goellner

codepen.io/simeydotme/p...
codepen.io
Week three of the September #CodePenChallenge is on
This week, let's go monochrome!

codepen.io/challenges/2...

Thanks @MongoDB for sponsoring: srv.buysellads.com/ads/long/x/T...
Blue lampshades lit from within, creating a monochromatic gradient of blue.