vue-rain-fall
v0.0.2
Published
A Vue 3 library for creating a beautiful rain effect.
Downloads
35
Readme
Vue Rain Fall
A Vue 3 library for creating a beautiful rain effect.
Installation
npm install vue-rain-fall
Usage
<script setup>
import { Rain } from 'vue-rain-fall';
</script>
<template>
<Rain />
</template>
Props
You can customize the rain effect by passing props to the Rain component.
drops-per-frame:
- type: Number
- default: 1
fallSpeed:
- type: Number
- default: 3
wind:
- type: Number
- default: 0
Slots
#drop
<script setup>
import { Rain } from 'vue-rain-fall';
</script>
<template>
<Rain>
<template #drop>
<div class="drop"></div>
</template>
</Rain>
</template>