$chiubaca / notes / fleeting / 2022-05-24
  • re-exploring JS-less modals using :target selector, this codepen still proving to be useful

    The :target CSS pseudo-class represents a unique element (the target element) with an id matching the URL’s fragment.

    • https://developer.mozilla.org/en-US/docs/Web/CSS/:target
  • Interestingly it will also work with query params too eg exammple.com/#?test=test

Edit on GitHub ✏️

Hey I'm Alex Chiu 👋. These are my notes for literally anything.

I'm using the Zettelkasten method to organise my thoughts here.

My more polished writings are published to my main blog at chiubaca.com

Follow me on: Github / X (Twitter) / Mastodon / LinkedIn