Show HN: spoilerjs – Reddit-style spoilers with particle animations

Show HN (score: 6)
Found: October 27, 2025
ID: 2137

Description

Other
Show HN: spoilerjs – Reddit-style spoilers with particle animations Hello HN!

I just published my first npm library as a small way to give back to the open source community.

I built `spoilerjs`, a lightweight web component that lets you hide text with an animated spoiler effect. Think Reddit spoilers, but with more flair! It works with plain HTML, React, Vue, or Svelte, and you can customize attributes like particle density, velocity, and scale. The effect is totally inspired by the Telegram app!

Demo: https://spoilerjs.sh4jid.me NPM: https://www.npmjs.com/package/spoilerjs GitHub: https://github.com/shajidhasan/spoilerjs

I'm sure there are probably some bugs and rough edges, but I'd love to hear your feedback!

Thanks!

More from Show

No other tools from this source yet.