1.0.1 • Published 3 years ago
svelte-snow
Licence
—
Version
1.0.1
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Svelte Snow
Properties
| Parameter | Type | Description |
|---|---|---|
active |
boolean |
Optional. Enables/Disables the rendering of snowflakes |
activeMonths |
Array<Number> |
Optional. Enables/Disables the rendering of snowflakes based on the specific month |
activeMonths only applies if active is set to true
activeMonths={[ 1 ]} = January and so on.
Usage/Examples
Always Snowing
<script>
import SvelteSnow from "svelte-snow";
</script>
<SvelteSnow>
<!-- your content goes here -->
</SvelteSnow>
Snow Disabled
<script>
import SvelteSnow from "svelte-snow";
</script>
<SvelteSnow active={false}>
<!-- your content goes here -->
</SvelteSnow>
Snowing from December till February
<script>
import SvelteSnow from "svelte-snow";
</script>
<SvelteSnow activeMonths={[ 1, 2, 12 ]}>
<!-- your content goes here -->
</SvelteSnow>