0.0.7 • Published 5 months ago
mouse-element v0.0.7
mouse-element
提供一个简单的鼠标小动画
🔨 Install
## 安装依赖
npm install mouse-element
## 导入组件
import { createMouseAnimation } from 'createMouseAnimation'
🌈 Usage
<main w-full h-full @mousemove="e => createMouseAnimation(e, { backgroundColor: 'yellow', timeout: 1000 })">
</main>
🚀 Props
- backgroundColor: 背景颜色
- timeout: 动画时长
- width: 宽度
- height: 高度