react-scroll-parallax
๐ฎ React hooks and components to create parallax scroll effects for banners, images or any other DOM elements.
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- bug_report.md
- support-issue.md
- coverage.yml
- main.yml
- size.yml
- surge.yml
- main.ts
- preview.js
- development.md
- tsdown-readme.md
- _category_.json
- advanced-banners.mdx
- banners.mdx
- custom-effects.mdx
- easing.mdx
- horizontal-scroll.mdx
- how-it-works.mdx
- scroll-effects.mdx
- _category_.json
- components.md
- parallax-banner-component.md
- parallax-component.md
- parallax-provider.md
- _category_.json
- hooks.md
- use-parallax-controller.md
- use-parallax.md
- _category_.json
- next-13.md
- parallax-props.md
- usage.md
- intro.mdx
- _category_.json
- index.mdx
- upgrade-to-v2.md
- upgrade-to-v3.md
- upgrade-to-v4.md
- postprocess-llms.js
- index.tsx
- index.tsx
- index.tsx
- index.css
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- index.tsx
- custom-preflight.css
- custom.css
- index.tsx
- tailwind-config.js
- Root.js
- banner-background.jpg
- banner-foreground.png
- banner.jpg
- bg-px-light.svg
- bg-px.svg
- favicon.ico
- icon-logo.png
- logo.png
- .nojekyll
- robots.txt
- _category_.json
- components.md
- parallax-banner-component.md
- parallax-component.md
- parallax-provider.md
- _category_.json
- hooks.md
- use-parallax-controller.md
- use-parallax.md
- _category_.json
- next-13.md
- parallax-props.md
- usage.md
- intro.mdx
- version-3-sidebars.json
- .gitignore
- babel.config.js
- docusaurus.config.js
- package.json
- postcss.config.js
- README.md
- sidebarHeader.js
- sidebars.js
- sidebarsMigration.js
- tailwind.config.js
- tsconfig.json
- vercel.json
- versions.json
- index.test.tsx.snap
- hooks.ts
- index.test.tsx
- index.ts
- Parallax.tsx
- types.ts
- index.test.tsx.snap
- ParallaxBannerLayer.tsx
- getExpandedStyle.test.ts
- getExpandedStyle.ts
- getImageStyle.ts
- index.test.tsx
- index.ts
- ParallaxBanner.tsx
- types.ts
- helpers.ts
- index.test.tsx
- index.ts
- ParallaxProvider.tsx
- types.ts
- ParallaxContext.ts
- getIsolatedParallaxProps.ts
- index.ts
- useParallax.test.tsx
- useParallax.ts
- useParallaxController.test.tsx
- useParallaxController.ts
- createElementMock.ts
- createNodeMock.ts
- expectRenderError.tsx
- MockProvider.tsx
- tests.constants.ts
- global.d.ts
- removeUndefinedObjectKeys.ts
- index.d.ts
- index.ts
- setupTests.ts
- Element.module.scss
- Element.tsx
- Image.module.scss
- Image.tsx
- 0_ParallaxRotation.stories.tsx
- 1_ParallaxVertical.stories.tsx
- 2_ParallaxHorizontal.stories.tsx
- 3_ParallaxImages.stories.tsx
- 4_ParallaxScale.stories.tsx
- 5_ParallaxOpacity.stories.tsx
- 6_ParallaxSpeed.stories.tsx
- 7_ParallaxEasing.stories.tsx
- Parallax.module.css
- 4_ParallaxBanner.stories.tsx
- ParallaxBanner.module.scss
- alexander-tsang-1488076-unsplash.jpg
- bg-grid.svg
- dimaz-fakhruddin-1477266-unsplash.jpg
- evgeniy-sholokh-1484415-unsplash.jpg
- julien-moreau-83192-unsplash.jpg
- maarten-deckers-248101-unsplash.jpg
- martin-pechy-1474791-unsplash.jpg
- useParallax.stories.tsx
- Container.tsx
- ScrollContainer.tsx
- storyHelpers.ts
- styles.css
- tsconfig.json
- assets.d.ts
- scss.d.ts
- .gitignore
- .np-config.json
- .nvmrc
- .prettierignore
- AGENTS.md
- eslint.config.js
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- postcss.config.js
- README.md
- tailwind.config.js
- tsconfig.json
- tsdown.config.js
- vercel.json
- vitest.config.ts
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/jscottsmith/react-scroll-parallax
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd react-scroll-parallax
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Node.js
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
npm install react-scroll-parallax
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
npm install react-scroll-parallax@beta
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
