Build, test, and discover front-end code ๐ป
https://codepen.io
Support: https://codepen.io/support

@codepen.io
Build, test, and discover front-end code ๐ป
https://codepen.io
Support: https://codepen.io/support
Another cool thing about this is that you can pop over to your local editor right from CodePen itself.
๐ The Official VS Code Extension! (Also works in Cursor, Devin, Antigravity, etc.) blog.codepen.io/docs/api/vs-... ๐ฉโ๐ป Open & work on any of your Pens ๐๏ธ Live preview and DevTools right in VS Code (no npm install) โจ Use whatever AI you want, it's just files ๐ Maybe you just like your local editor
Check out how custom screenshots work. 1) You put a file screenshot.jpg at the root (or .png or whatever) 2) It becomes the screenshot everywhere on CodePen 3) It's also the image when sharing the Pen anywhere else (social, discord, imessage, etc) 4) It's ALSO the opengraph stuff on a deployed site
Play Windows Solitaire (1990) in pure #CSS. This uses random(), view timelines, bitpacking, and no JavaScript! ๐
Try it: codepen.io/editor/alowp...
๐ The Official VS Code Extension! (Also works in Cursor, Devin, Antigravity, etc.)
blog.codepen.io/docs/api/vs-...
๐ฉโ๐ป Open & work on any of your Pens
๐๏ธ Live preview and DevTools right in VS Code (no npm install)
โจ Use whatever AI you want, it's just files
๐ Maybe you just like your local editor
You can really customize the bejeebus out of the CodePen editor. Lemme show you.
Gallery :: codepen.school/gallery
SALE! :: codepen.io/sale?utm_sou...
๐
Definitely feels like a shitpost, but hey, it worked!
Wait til they see CodePen, gonna blow some mind.
โฑ๏ธ A tour of a ton of sweet CodePen features in (checks watch) three and a half minutes.
Oh yeah: did we mention we're having a sale?
๐ฅ ๐คฏ ๐ ๐ฃ ๐งจ (Boom!) BLACK FRIDAY (Pew pew!) (Crash!) ๐งจ ๐ฃ ๐ ๐คฏ ๐ฅ
(lol @ the Page Rage plugin)
CodePen now supports build-time packages now, and one way it is immediately useful is that we'll detect when you need TypeScript types from npm and just... do that for you. You'll see where we found them in your `package.json` in the `devDependencies`, so you have control.
```
.codepen {
margin: -15%
}
```
One-shotting is using the output of generative AI from a single prompt. Mostly: that's slop. Nothing great is one-shot. But that doesn't mean it can't be useful. Some things can be decently high-quality one-shots that get the job done. In this case, selling a banjo. ๐ช
We've been committing code to CodePen for 15 years! Nice number. Let's celebrate with 15% off ALL Annual PRO plans.
Deploy sites, make password-protected private Pens, live-updating previews, realtime/aync Collab, hosted assets, version history, no ads, and more. ๐ฉโ๐ณ's ๐
1. CSS supports squircles natively. Cool! 2. The same border-radius looks... way less rounded, though. Weird. 3. There is a PostCSS plugin that equalizes them. Cool! 4. How does that work on CodePen? We support build-time dependencies now. ๐. Just list the plugin by name.
8 years ago, I built an elastic SVG menu with jQuery.
Today, I gave it a second life as a messenger UI. Pure vanilla JS.
Grab the edge anywhere and it bends from that point. Click a chat and it reacts exactly where you clicked.
I wrote something heavy @codepen.io users will like: CodePen Commander (`cdpn`), a CLI tool for CodePen.
Use it to clone/pull/push/delete/publish local copies of pens and keep it all in sync.
โ npm install -g codepen-commander
www.npmjs.com/package/code...
www.youtube.com/watch?v=mnrx...
We just shipped a big upgrade to our Version History feature. One click to explore any past version; one click to restore any past version. Makes it fun to go look through the past of a Pen and how it evolved to where it is now, not to mention the safety of never losing work.
One shape, three silhouettes, and a bit of CSS. ๐
Live demo on @codepen.io: codepen.io/editor/amit_...