96 View this issue on CodePen Always Great Grids, JavaScript Sparks, and Bouncy Images This week’s CodePen community highlights include an “always great grid” from Adam Argyle, two kinds of sparkling pyrotechnics from Ryan Mulligan and Gabriele Corti, and a bouncy image gallery from Temani Afif. Plus, Amit Sheen live codes an animated tower of climbing cubes, and Josh Bader pays tribute to both the Teenaged Mutant Ninja Turtles and Lego with CSS. pen Rocknot Liam Egan shares a spectacular demonstration of WebGL shader animation & texture in the form of this undulating “rocknot”. pen Circular Carousel MotionPath – Draggable & Inertia GreenSock demonstrates the super-realistic interactive movement of their MotionPath plugin with this carousel wheel. Give it a gentle nudge for a slow spin, or give it a good whirl and see how fast it goes! pen Minimalist Lego – TMNT Josh Bader pays homage to his Instagram project Pixel Homage with this Lego-inspired CSS portrait of the Teenaged Mutant Ninja Turtles. And if that’s not enough turtle power for you, andrewrock also illustrated the Turtle Boys this week. pen Click Spark Ryan Mulligan writes about crafting a web component tomake little “sparks (of joy) fly out from the mouse cursor/tap position” in this brief blog post with embedded Pen demo. pen Tower of climbing cubes Neon blocks stack up and climb to infinity in this mesmerizing CSS animation from Amit Sheen. To see how it was made, check out Amit’s live coding session on YouTube . pen Lighten up Gabriele Corti continues a weekly exploration of Zdog with this lovely display of a “few highly-saturated sparks to light up the sky”. Part of Gabriele’s “Zdog Monday ” collection. collection #CodePenChallenge: CSS Illustration For the 2nd week of our CSS Stunts challenge, we did CSS illustrations! Check out our collection from week two, including Pens by Takane Ichinose , Josetxu , sitels , and Andrii Rodzyk . sponsor Master AWS concepts thanks to DoiT Level up your AWS knowledge with the AWS Cookbook, compliments of DoiT, which is packed with tips, tricks, & recipes for success. DoiT provides technology & cloud expertise to reduce cloud costs & boost engineer productivity. All from an AWS, Microsoft & Google Cloud Partner. pen Wow Winter Blanket It’s form over function in this high-style, low-comfort Three.js scene from Anna Zenn Scavenger. “A non-cozy blanket. Now imagine wrapping yourself in it. What a horrible feeling. Brrr.” sponsor Get more done with 50% off Slack Pro Slack makes communication easier so your team can stay organized, save time and get more done pen Always great grid Add as many boxes as you like, and stretch or squish the container as much as you want, this CSS grid enhanced with :has() and view transitions is always great! From Adam Argyle. pen Bouncy Image Radio Group Click the images in this gallery to see them bounce gently, then settle in naturally thanks to some slick CSS work with :has() and eased transitions from Temani Afif. Chris’ Corner A collection of web design and development news and thoughts from CodePen’s own Chris Coyier. The “switch” is a pretty common design pattern on the web. It’s pretty much a checkbox. In fact, under the HTML hood, it really ought to be an or perhaps a Nice. And here’s what it looks like by default: No big surprise there! It’s the native iOS toggle come to life. It respects accent-color in CSS like other form controls, which is great. But better, it has really sensible pseudo elements you can grab and style. You get ::thumb and ::track elements (nice clear naming) plus ::before and ::after work on the element itself, so there are a lot of possibilities. .custom-switch { } .custom-switch::thumb { } .custom-switch::track { } .custom-switch:checked::thumb { } .custom-switch:checked::track { } .custom-switch::checked::after { } .custom-switch::checked::before { } Tim Nguyen has demos that do a good job of showing off the possibilities with clean readable CSS. The best part of browsers providing this kind of thing for us, to me, is that now you don’t have to worry about dinking up the accessibility. Now, as long as you follow the normal HTML structure of a labelled checkbox in a form, you’re good. No worries about the way you hid the original checkbox screwing things up. You are taking visual control though, so do take care to make sure the checked and unchecked values are at least as clear as a checked or unchecked checkbox. CodePen PRO Just tuck this into the ol’ brain bank: CodePen hosted assets, a PRO feature , serve those assets with full CORS permissions. If they didn’t, you’d be fighting against cross-origin browser policies when you, for example, may want to fetch them in JavaScript. We just want to make that painless for you. 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 .Always Great Grids, JavaScript Sparks, and Bouncy Images

(Verse 1)
Trời sáng rồi "96
Bình minh vui tràn đầy hi vọng
CodePen ngập tràn sự sáng tạo
Chàng trai Argyle xây dựng grid tuyệt vời

(Chorus)
Luôn là grid tuyệt vời
Vững vàng như một nền móng
JavaScript lấp lánh như ngọn lửa
Hình ảnh bùng nổ lung linh

(Verse 2)
Ryan Mulligan và Gabriele Corti
Tạo ra những ánh sáng chớp lóe
Temani Afif tạo ra một bộ sưu tập hình ảnh bật nhảy
Amit Sheen xây dựng tháp gồm những khối lập phương bay lên

(Bridge)
Cùng điểm qua những tác phẩm tuyệt vời
WebGL shader animation, Lego TMNT
GreenSock demo vòng tròn carousel, thú vị hơn cả mong đợi

(Chorus)
Luôn là grid tuyệt vời
Vững vàng như một nền móng
JavaScript lấp lánh như ngọn lửa
Hình ảnh bùng nổ lung linh

(Verse 3)
Rocknot đẹp như tranh vẽ
Circular Carousel MotionPath - Draggable & Inertia
Lego TMNT và Turtle Boys tỏa sáng
Click Spark để những tia lửa bay lên cao

(Bridge)
Nếu bạn muốn biết cách làm những tác phẩm này
Amit Sheen và Gabriele Corti có chia sẻ trên YouTube

(Chorus)
Luôn là grid tuyệt vời
Vững vàng như một nền móng
JavaScript lấp lánh như ngọn lửa
Hình ảnh bùng nổ lung linh

(Outro)
Với CodePen, mãi mãi sáng tạo
Cùng nhau khám phá những điều tuyệt vời