Design Patterns on CodePen

This ever-growing curated collection of interface patterns on CodePen is a reliable source of inspiration.

Tagged with

Related links

Revealing ‘back to top’ button

Such a clever minimalist use of CSS!

Tagged with

To-Do Terrarium

I love this little to-do app! Every time you tick something off your list, something grows in your virtual terrarium. Lovely!

Tagged with

Inline an SVG file in HTML, declaratively & asynchronously!

Woah! This is one smart hack!

Scott has figured out a way to get all the benefits of pointing to an external SVG file …that then gets embedded. This means you can get all the styling and scripting benefits that only apply to embedded SVGs (like using fill).

The fallback is very graceful indeed: you still get the SVG (just not embedded).

Now imagine using this technique for chunks of HTML too …transclusion, baby!

Tagged with

HTML periodical table (built with CSS grid)

This is a nifty visualisation by Hui Jing. It’s really handy to have elements categorised like this:

  • Root elements
  • Scripting
  • Interactive elements
  • Document metadata
  • Edits
  • Tabular data
  • Grouping content
  • Embedded content
  • Forms
  • Sections
  • Text-level semantics

Tagged with

CodePen - Solar System 3D Animation (Pure CSS)

This orrery is really quite wonderful! Not only is it a great demonstration of what CSS can do, it’s a really accurate visualisation of the solar system.

Tagged with

Related posts

Even more writing on web.dev

Five more articles on modern responsive design to close out the course.

The principle of most availability

Reframing the principle of least power.

Overlay gap

A problem shared is a problem halved. And the web has a big problem with awful overlays.

Utopia

Why do I like fluid responsive typography? Let me count the ways…

The Web Share API in Safari on iOS

Unexpected behaviour in the clipboard.