loktar00 / JQuery-Snowfall

Makes it snow on any web page or specific element.
http://loktar00.github.io/JQuery-Snowfall/
712 stars 221 forks source link

Collect doesn't seem to be working #45

Closed dylanh724 closed 8 years ago

dylanh724 commented 8 years ago

Hi --

I am using this and snowfall is working great:

$(document).snowfall({collection : '.note'});

However, the collection doesn't seem to work. I've confirmed that .note exists and caps is correct.

Is there something I'm doing wrong? Love this code btw

EDIT: I tried adding an ID, and adding by ID '#note' didn't work. Snow works, but not collection :/

dylanh724 commented 8 years ago

was there an update recently? Seems to be working now, with this example: $(document).ready(function() { $(document).snowfall({collection : '.nav-menu-cont'}); });

loktar00 commented 8 years ago

Hmm not sure of one in particular, but glad it works :+1:

SasSam commented 7 years ago

It doesn't work for me. Canvas has been created above the container, but it's not catching the flakes.

The z-index wasn't set for the canvas at init. It should have a default value when the plugin creates it.