Right now, Snowfall only attached to an element with the ID "snow-container". This isn't terrible, but it would be preferable to be able to attach it to whatever we want with a config property.
I'm not sure what it should feel like to use just yet, it seems easier on the user to pass a string to snowfall and let it find the element itself, like this.
snowfall.start({
attachTo: '#customElement'
})
But perhaps it would be less of a headache if it instead expected to be passed exactly the element it should be attached to, more like this.
Right now, Snowfall only attached to an element with the ID "snow-container". This isn't terrible, but it would be preferable to be able to attach it to whatever we want with a config property.
I'm not sure what it should feel like to use just yet, it seems easier on the user to pass a string to snowfall and let it find the element itself, like this.
But perhaps it would be less of a headache if it instead expected to be passed exactly the element it should be attached to, more like this.
I am leaning towards the second version at the moment to avoid the headache of a user passing classes rather than IDs. Will have a think on it.