1.0.1 • Published 1 year ago

svelte-snow v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Svelte Snow

Properties

ParameterTypeDescription
activebooleanOptional. Enables/Disables the rendering of snowflakes
activeMonthsArray<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>