Show HN: spoilerjs – Reddit-style spoilers with particle animations
spoilerjs.sh4jid.meHello 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!
This is soooo Awesome... I like the dynamism in the obscuring animation