0.0.2 β’ Published 11 months ago
react-falling-snow v0.0.2
π 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 λ₯Ό λͺ μν΄ μ€λλ€.