react-falling-snow
v0.0.2
Published
snow falling in react
Downloads
3
Readme
📌 HOW TO USE IT
npm install react-falling-snow
import React from "react";
import { SnowFalling } from "react-falling-snow";
function App() {
return (
<div>
<SnowFalling delay={3} />
</div>
);
}
export default App;
div {
position: relative;
width: 320px;
height: 860px;
}
✅ delay property is optional. default setting time is 12 seconds.
✅ You need to give the position : relative attribute to the parent element you want to use
✅ Also, defines the width and height of the parent element.
✅ delay 속성은 옵셔널 합니다. 기본 세팅 시간은 12초 입니다.
✅ 사용하고자 하는 부모요소에 position : relative 속성을 주어야 합니다.
✅ 마찬가지로, 부모요소에 width 와 height 를 명시해 줍니다.