Booting Environment...

Snow Effect

A lightweight, peaceful snowfall animation rendered on an HTML5 Canvas. Perfect for seasonal themes or adding a sense of tranquility to hero sections.

Installation

npx raya-ui@latest add snow-effect

File Structure

your-project
components
ui
snow-effect
SnowEffect.vue

API Reference

Props

color
string
"#FFF"

The Hex color code for the snowflakes.

quantity
number
100

Total number of snowflakes rendered on the screen.

speed
number
1

Vertical fall speed multiplier. Higher values create a blizzard effect.

minRadius
number
1

Minimum size (in pixels) for the randomly generated snowflakes.

maxRadius
number
3

Maximum size (in pixels) for the randomly generated snowflakes.

Winter Mode

Dynamic Canvas Snowfall

Settings
150 flakes
1.0x
#ffffff