Vanilla JS
Closed this issue · 2 comments
xhyrom commented
Can you do support for JS without react? That would be really cool :D
cahilfoley commented
I imagine that would be possible 👍 if I find some time I'll try to make something that works without react.
cahilfoley commented
Hey @xhyrom, sorry this took a while, the new version 2.0.0 release has split the snowfall rendering out into a pure vanilla JS implementation that is then internally used in the React component, but you can access it yourself. You can use now use the SnowfallCanvas
class to use this effect in plain JS (or any other framework for that matter). Here's an example of how to use it with plain JS StackBlitz.
Hope this is what you were after!