Metallic GSAP, doubledash.css, and WebGPU Sand

0 views
Skip to first unread message

CodePen

unread,
May 20, 2026, 11:46:54 AMMay 20
to recibir-c...@googlegroups.com

Metallic GSAP, doubledash.css, and WebGPU Sand

This special edition of The CodePen Spark is sponsored by AWS Marketplace. Download the new Forrester Consulting study commissioned by AWS Marketplace to learn how AI-powered DevOps starts with better workflows.

This week's CodePen community highlights include a beautiful piece of GSAP-powered metalwork from Tom Miller, the debut of Jane Ori's jaw-dropping custom CSS functions collection doubledash.css, and an interactive WebGPU sand simulation from Liam Egan.


Forrester: AI-powered DevOps starts with better workflows

DevOps teams are under pressure to ship faster while managing complexity, technical debt, and security risk. In this Forrester Consulting study commissioned by AWS Marketplace, learn how organizations use AI to automate repetitive work, improve CI/CD efficiency, and strengthen delivery outcomes across the SDLC.

You will also see where AI is already driving the most value, from collaboration and tool customization to faster remediation and more productive developer workflows. Download the report to explore the data and Forrester’s recommendations for building a more AI-native DevOps experience.

Research will show how:

  • AI helps transform DevOps workflows by automating repetitive and manual tasks.
  • Inefficient pipelines increase cost, risk, and difficulty scaling DevOps practices.
  • Organizations see the greatest gains from AI in CI/CD, collaboration, and productivity.
  • Forrester recommendations guide effective adoption of AI across DevOps practices.

Download Now

Sand wizard - WebGPU
pen
"I’ve wanted to create a WebGPU sand simulation for some time, as adding compute layers seems well-suited to it. This was all surprisingly straightforward. Some little bugs in here, like sand sitting on top of water, but in general, I’m pleased with it as the result of a couple of hours’ work." From Liam Egan.
Grid Run
pen
Run through an infinite grid with an orb of light as your guide in this cinematic WebGL shader from Matthias Hurrle, with some secret controls tucked inside. "In this shader, the mouse wheel is mapped to the timeline. This means that when the shader is paused, you can use the mouse wheel (or touchpad) to scroll through the timeline."
doubledash.css
link
The propjockey is at it again! Jane Ori shares a stunning collection of custom --functions() that can "Easily cast between types. Quickly compare values. Execute bitwise operations. Run the world's first 100% CSS loops. No builds, no JS."
CodePen Challenge: Menu Layout
collection
In week two of our Layouts challenge, we cooked up some restaurant menus. Check out our collection, including Pens by MOZZARELLA, dustindwayne, grauconejo13, and Megafry. Want to jump into the May challenge? Week three is on now!
tilted carousel
pen
Photo cards tilt and turn in and out of view as you advance through the carousel in Vivi Tseng's take on a photo flow concept that's making the rounds in the design community.
Coil + Axis
pen
An axis line darts through a shiny spinning coil in this elegant piece of GSAP-powered front-end metalwork from Tom Miller.
Folding Circle Loop
pen
"A preloader featuring a sequence of icons linked to online payment. Based on a Dribbble shot by heyjeuss." From Jon Kantner.
Towlggle Switch
pen
This one's a real hoot! CSS cartoonist Alvaro Montoro shares a pop art owl toggle switch with toggleable eyes. What could you use it for? Whooo knows 😁

Chris’ Corner

A collection of web design and development news and thoughts from CodePen's own Chris Coyier.

I’ve had View Transitions on the mind a little bit after experimenting with using them to move the focus ring around the page. I found that pretty satisfying, except the part where I was binding events to the tab key myself and keeping track of “focusable” elements. I know better, as that kind of thing is always best left to the browser. I was just checking whether it was possible to animate that focus style from place to place, since it wasn’t really “the same” element (and arguably not an element at all). It is totally possible.

But then I’m glad Kilian Valkhof chimed in with his CSS-only floating focus with anchor positioning, which pulls it off without needing any JavaScript at all. I guess I still proved it can be done with View Transitions, but certainly Kilian’s demo is much cleaner. Jealous! I should have thought of that.

In my own last demo, I noticed something about the CSS styles I was playing with to control the animations.

/* movement */
::view-transition-group(focus-ring) {
}

/* resizing */
::view-transition-old(focus-ring),
::view-transition-new(focus-ring) {
}

I put those comment labels there, as I happen to notice that if you changed the animation-duration on them to exaggerate things, it seemed the view-transition-group was in charge of the moving and the other two were in charge of the morphing of one shape to another. I honestly don’t even get it. I emailed Cyd to see if she can explain it haha, we’ll see if we get that blog post someday.

I do know that you can see the pseduo element tree of View Transitions stuff in the DOM (via Chrome DevTools) as the animations happen.

Chrome DevTools showing the pseudo-element tree of a view transition.

That’s nice, as you can click on them and see what’s what.

But notice how they are all children of the <html> element?

Well, ultimately, that’s because we call document.startViewTransition(). Document. That’s <html>. That’s required for now, but there is a proposal to be able to call startViewTransition from other elements, meaning it would be “scoped” down to that element. This allows, for one thing, multiple View Transitions to run at once, which is impossible right now. It’s ready for testing, Chrome says.

The part I like the most about scoped view transitions is that that psuedo element tree we looked at above is placed within the element you call it on, and that element might have something like overflow: hidden on it, and it will actually be respected, as Bramus’ demo clearly demonstrates. It’s nice to be able to experiment and understand how these things work. Thanks, CodePen.

Speaking of Bramus, he’s got a View Transitions Toolkit he’s put out. I haven’t played with it yet, but it looks like it’s got some real practical goodies like detecting support and dealing with the fallback structure and auto-naming functions. But the feature I’d probably use the most is the ability to scrub through the animations. I gave it a shot and found it a little complex to set up, relying on some fairly complex helper functions that aren’t a part of the package itself, but I did get a demo working.

Let me leave you with Some practical examples of view transitions to elevate your UI — a great article by Declan Chidlow showcasing some extremely practical uses of View Transitions you may not have thought of. Animating the re-sorting of a table is pretty cool, as is animating the progress bar of a multi-step form.

You can adjust your email preferences any time, or instantly unsubscribe to emails of this kind. Need help with anything? Hit up support. Interested in sponsoring? Here's our sponsorship info.

CodePen · 70 SW Century Dr #1019 · Bend OR 97702

Reply all
Reply to author
Forward
0 new messages