# @ggns/use-fade-in

> React hook to fade in element

Latest version **1.0.1** (published 2023-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ggns/use-fade-in
pnpm add @ggns/use-fade-in
yarn add @ggns/use-fade-in
bun add @ggns/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 | 2023-01-06 |
| First published | 2023-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kim Tae Heon |
| Maintainers | ggnsall |
| Keywords | React, React, hook, useFadeIn, fade, in, hook |

## Links

- npm: https://www.npmjs.com/package/@ggns/use-fade-in
- Repository: https://github.com/gangnamssal/gnshooks
- Homepage: https://github.com/gangnamssal/gnshooks#readme
- Issues: https://github.com/gangnamssal/gnshooks/issues
- npm.io page: https://npm.io/package/@ggns/use-fade-in

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^18.2.0
- [js-tokens](https://npm.io/package/js-tokens.md) ^4.0.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [scheduler](https://npm.io/package/scheduler.md) ^0.23.0
- [loose-envify](https://npm.io/package/loose-envify.md) ^1.4.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-01-06
- 1.0.0 — 2023-01-06

## README

```javascript
* usage
const usefadeIn = () => {
  const element = useRef();
  useEffect(() => {
    // element 안으로 들어가기 위해서 useEffect 사용
    if (element.current) {
      const { current } = element;
      current.style.transition = `opacity 1s`;
      current.style.opacity = 1;
    }
  }, []);
  return { ref: element, style: { opacity: 0 } }; 
};

const App = () => {
  const fadeInH1 = usefadeIn();
  return (
    <div className="App">
      <h1 {...fadeInH1}> Hello </h1>
    </div>
  );
};
```

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