npm.io
0.0.2 • Published 3 years ago

react-falling-snow

Licence
Version
0.0.2
Deps
1
Size
11 kB
Vulns
0
Weekly
0

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 속성을 주어야 합니다.

마찬가지로, 부모요소에 widthheight 를 명시해 줍니다.




Dear front devs, Merry Christmas !

Keywords