# @practical-react-hooks/use-fade-in

> React Hook to fade in any element.

Latest version **1.0.1** (published 2021-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @practical-react-hooks/use-fade-in
pnpm add @practical-react-hooks/use-fade-in
yarn add @practical-react-hooks/use-fade-in
bun add @practical-react-hooks/use-fade-in
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-10 |
| First published | 2021-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | leebonghak |
| Maintainers | octo908 |
| Keywords | react, hooks, fade-in |

## Links

- npm: https://www.npmjs.com/package/@practical-react-hooks/use-fade-in
- Repository: https://github.com/LEEBONGHAK/practical-react-hooks.git#main
- Homepage: https://github.com/LEEBONGHAK/practical-react-hooks/tree/main#readme
- Issues: https://github.com/LEEBONGHAK/practical-react-hooks/issues
- npm.io page: https://npm.io/package/@practical-react-hooks/use-fade-in

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-09-10
- 1.0.0 — 2021-09-10

## README

# @practical-react-hooks/use-fade-in

React Hook to fade in any element.

## Installation

yarn  
```
yarn add @practical-react-hooks/use-fade-in
```
  
npm
```  
npm i @practical-react-hooks/use-fade-in
```

## Usage
  
```
import React from "react";
import useFadeIn from "@practical-react-hooks/use-fade-in";

const App = () => {
  const fadeIn = useFadeIn(5, 10);
  return (
    <div className="App">
      <h1 {...fadeIn}>Hello World</h1>
    </div>
  );
};
```

## Arguments
  
|Argument|Type|Description|Required|Default value|
|:---:|:---:|:---:|:---:|:---:|
|duration|number|Sets the duration of the transition. In seconds|no|1|
|delay|number|Delays of transition's start. In seconds|no|0|

## Return
  
|Name|Type|Description|
|:---:|:---:|:---:|
|ref|React Ref|A ref created to fadeIn the element|
|style|Object|Style object containing {opacity:0} to give to the element as a default|

---
_Source: https://npm.io/package/@practical-react-hooks/use-fade-in · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
