RedditPP Mascot

RedditPP

r/webdev • … • u/Brabbler

25kb Library to add bokeh/particle/bubble effects to DOM elements using HTML5 canvas.

[Link](https://bthegit.github.io/bokehfy/)

This is my first time trying to publish a library.

I was inspired by u/tipsypants publishing his tiny bubble effects library a few days ago.

It was a really fun experience taking an effect I was using on another project and trying to make it suitable for public consumption. Plus, I need more portfolio projects for the job hunt! :)

The library would have been much lighter but I wanted to include stronger color validation (I used Tiny Color) which is responsible for a lot of the final code size. Somebody wanting to create a custom effect for their own page without needing validation could get it down much smaller.

I just put this together this weekend, so feedback is definitely welcome!

(The demo page doesn't have a gradient input to play with, but 2 and 3 color gradients are also part of the API)

— 0