scottschiller / Snowstorm

Enterprise-grade JavaScript snow effect for the internets, setting CPUs on fire worldwide every winter since 2003.
http://www.schillmania.com/projects/snowstorm/
Other
541 stars 144 forks source link

Add className property #11

Closed schuetzm closed 10 years ago

schuetzm commented 11 years ago

This allows further customization via CSS, for example setting a different cursor or transparency.

scottschiller commented 10 years ago

Pardon the super-late follow-up - I lost track of pull requests on this project quite some time ago and only update it during the winter season. ;)

schuetzm commented 10 years ago

Hey, no problem! It's a pleasant surprise, anyway :-) Maybe you can have a look at my other PR too?

scottschiller commented 10 years ago

You're most welcome. A year late is probably unusual, but not a record on GitHub, my guess. ;)

Regarding the other PR, I didn't merge that right in because there should be at least one snowStorm instance created immediately for the default case - I forgot if you were creating one right away, and had meant to review that. I was also thinking I might be able to clean up some of the events attached on each, but it's probably safe to leave the built-in functionality as-is. It should work.

schuetzm commented 10 years ago

One instance is always created automatically, see the last line. It's called "snowStorm", too, the same as it was before, so existing code should just keep functioning.