Skip to content

Repository files navigation

FallingJS

FallingJS will help you use the beautiful snowing effect very simply!
examples: https://neulhan.github.io/FallingJS/

Preview

Get Started

<scripttype="module">constfallingjs=newFallingJS();fallingjs.start();</script>

Config Props

NameTypeDescriptionRequiredDefault
elstringFalling effect area by css selectorNobody
frequencynumberSet falling object adding frequency to the areaNo0.1
minSpeednumberSet min speed of falling objectsNo0.5
maxSpeednumberSet max speed of falling objectsNo2
minRadiusnumberSet min radius of falling objectsNo1
maxRadiusnumberSet max radius of falling objectsNo3
minAnglenumberSet min angle of falling objects (-1 ~ 1 recommended)No-0.2
maxAnglenumberSet max angle of falling objects (-1 ~ 1 recommended)No0.2
typestringType of falling objectsNo"Circle"
colorsstring[]Color palette array for falling objectsNo["#FFF"]
wasmbooleanUse rust-wasm version renderingNofalse

Future Updates

  • Add config props image to custom snowflake image
  • Add event hooks

About

Beautiful snowing effect very simply! Rust-WASM support too.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages