jonathanleane
Joined 14 years ago
Joined 14 years ago
It's just one hook - useReward() - that gives you 11 different particle effects: confetti, fireworks, sparkles, hearts, stars, bubbles, snow, emoji, coins, lightning, and flower petals. The whole thing is under 10KB gzipped with zero dependencies.
Demo: https://jonathanleane.github.io/partycles
The library is MIT licensed and on GitHub. Would love contributions - especially new animation types or performance improvements. The codebase is pretty straightforward, each animation is its own module.
I'm using it in production for success notifications and user achievements. Works great on mobile too.
Tech: TypeScript, React 16.8+, rollup for bundling. No canvas - just DOM elements with CSS transforms, which keeps it simple and performant.
Happy to answer any questions!
"In 1895, Bly married millionaire manufacturer Robert Seaman. Bly was 31 and Seaman was 73 when they married. Due to her husband's failing health, she left journalism and succeeded her husband as head of the Iron Clad Manufacturing Co., which made steel containers such as milk cans and boilers. Seaman died in 1904."
You can see more about her asylum expose here: https://blogs.loc.gov/headlinesandheroes/2022/11/nellie-bly-...
EDIT: Even better, the full book: https://digital.library.upenn.edu/women/bly/madhouse/madhous...
The prompt if anyone wants to try it:
• ENDEAVOR • CURB • NATIONAL • BOARDWALK • HERTZ • TWIN • MOLE • ENTERPRISE • SILICON • PROJECT • TIGER • VOLT • GAME • RAY • SECOND • VENTURE
Its a game of NY Times connections. You need to make 4 groups of 4 words. Can you do it?
"Dementia occurred among 96 of 730 participants (13.2%) with adult ADHD and 7630 of 108 488 participants (7.0%) without adult ADHD."