Skip to content

Instantly share code, notes, and snippets.

@cassidoo
Created October 31, 2025 22:53
Show Gist options
  • Select an option

  • Save cassidoo/ff242aac3646075a865042ac06ce8ac4 to your computer and use it in GitHub Desktop.

Select an option

Save cassidoo/ff242aac3646075a865042ac06ce8ac4 to your computer and use it in GitHub Desktop.
Halloween 2025 meme

From this video!

Based on this Pen.

Caption:

So I have this page that looks empty, because all the spans are empty. But, using their data status attribute, I can add the CSS attribute function to the content property to actually render those characters on the screen.

Normally you can't select individual characters in a string with CSS, but because these are rendered this way, I can use the nth child and nth-last-child selector to hide those selected characters, and AHH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment