๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
React

[React] ๋ฆฌ์•กํŠธ ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๊ฐœ๋ฐœ

by LasBe 2024. 3. 13.
๋ฐ˜์‘ํ˜•

๐Ÿ“’ @lasbe/react-scroll-animation


 

@lasbe/react-scroll-animation

๋ฆฌ์•กํŠธ์—์„œ ์†์‰ฝ๊ฒŒ ์‚ฌ์šฉํ•˜๋Š” ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜. Latest version: 2.0.2, last published: a month ago. Start using @lasbe/react-scroll-animation in your project by running `npm i @lasbe/react-scroll-animation`. There are no other projects in

www.npmjs.com

 

GitHub - LasBe-code/react-scroll-animation: ๋ฆฌ์•กํŠธ๋กœ ์†์‰ฝ๊ฒŒ ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๋Š” ๋ผ์ด๋ธŒ

๋ฆฌ์•กํŠธ๋กœ ์†์‰ฝ๊ฒŒ ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค. Contribute to LasBe-code/react-scroll-animation development by creating an account on GitHub.

github.com

์˜ˆ์ „์— ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ ํ•  ๋•Œ ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๊ตฌํ˜„ํ•˜๊ณ  ๊ธ€๊นŒ์ง€ ๋‚จ๊ฒผ์—ˆ์Šต๋‹ˆ๋‹ค.

2023.08.06 - [React] - [React] ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜, IntersectionObserver + styled-components

 

ํ”„๋กœ์ ํŠธ๋ฅผ ๋งˆ์น˜๊ณ  ๋‚œ ํ•œ์ฐธ ํ›„ ์“ธ๋ฐ์—†์ด ์–ด๋ ค์›Œ ๋ณด์ด๋Š” ์ด ๊ธฐ๋Šฅ์„ ์ •๋ง ๊ฐ„๋‹จํ•œ ์‚ฌ์šฉ์„ฑ์„ ๊ฐ–์ถ˜ ๋ชจ๋“ˆ๋กœ ๋งŒ๋“ค ์ž์‹ ๊ฐ๊ณผ ์ถ”ํ›„ ๋‹ค๋ฅธ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•  ๋•Œ ์จ๋จน์–ด์•ผ๊ฒ ๋‹ค๋Š” ์ƒ๊ฐ์œผ๋กœ ์ œ์ž‘ํ•˜๊ฒŒ ๋์Šต๋‹ˆ๋‹ค.

 

์™„์„ฑํ•˜๊ณ  ๋ฌธ์„œ๊นŒ์ง€ ์ž‘์„ฑํ•œ์ง€๋Š” ๋ช‡ ๋‹ฌ ๋๋Š”๋ฐ ๊ท€์ฐฎ์•„์„œ ๋ฏธ๋ค„๋‘๊ณ  ์žˆ๋‹ค๊ฐ€ ์ด์ œ์•ผ ๋ธ”๋กœ๊ทธ์— ๊ธ€์„ ์˜ฌ๋ ค๋ด…๋‹ˆ๋‹ค.

 

๋จผ์ € ๊ทธ๋‚˜๋งˆ ์™„์„ฑ๋„ ์žˆ๋Š” ํŒจํ‚ค์ง€๋ฅผ ๋ฐฐํฌํ•œ ์†Œ๊ฐ์„ ๋งํ•ด๋ณด์ž๋ฉด, ๊ฑฐ์˜ ๋ชจ๋“  ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•˜๊ณ  ํŽธ๋ฆฌํ•˜๊ฒŒ ์‚ฌ์šฉํ•˜๋„๋ก ์„ค๊ณ„ํ•˜๋ฉฐ ์™„์„ฑ๋„๋ฅผ ๋†’์ด๋ ค๋Š” ๊ณผ์ •์—์„œ ํ•œ ๋‹จ๊ณ„ ๋” ์„ฑ์žฅํ•œ ๋Š๋‚Œ์ด ๋“œ๋„ค์š”.

 

๊ทธ๋Ÿผ ๊ฐ์„คํ•˜๊ณ  ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ๋ ค๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

 

๐Ÿ“Œ ์˜ˆ์ œ ์‚ดํŽด๋ณด๊ธฐ

๋จผ์ € ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€ ์‚ดํŽด๋ณด๋Š”๊ฒŒ ๋” ๋‚ซ๊ฒ ์ฃ ?

 

๐Ÿ“Œ install

$ npm i @lasbe/react-scroll-animation

 

๐Ÿ“Œ <ScrollAnimation /> Props

์˜ฎ๊ธฐ๊ธฐ ๊ท€์ฐฎ์•„์„œ ์‚ฌ์ง„์œผ๋กœ ๋–ผ์›๋‹ˆ๋‹ค.

 

๋‚˜๋จธ์ง€ ๋” ์ž์„ธํ•œ ๋‚ด์šฉ๋“ค์€ ๊นƒํ—ˆ๋ธŒ๋‚˜ npm์—์„œ ํ™•์ธ ๋ฐ”๋ž๋‹ˆ๋‹ค.

 

์•„์ง ๋ถ€์กฑํ•œ ์ ์ด ๋งŽ๊ธฐ ๋•Œ๋ฌธ์— ์•„์‰ฌ์šด ์ ์„ ์ฐพ์œผ์…จ์„ ๋•Œ ์—ฐ๋ฝ ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€


์˜คํ”ˆ ์ฑ„ํŒ