https://github.com/jscottsmith/parallax-controller
🕹 Core classes and controller for creating parallax scrolling effects.
https://github.com/jscottsmith/parallax-controller
animation effects parallax performance scroll
Last synced: 9 days ago
JSON representation
🕹 Core classes and controller for creating parallax scrolling effects.
- Host: GitHub
- URL: https://github.com/jscottsmith/parallax-controller
- Owner: jscottsmith
- License: mit
- Created: 2021-11-23T07:34:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T17:58:30.000Z (over 1 year ago)
- Last Synced: 2024-10-31T19:24:42.073Z (6 months ago)
- Topics: animation, effects, parallax, performance, scroll
- Language: TypeScript
- Homepage: http://parallax-controller.damnthat.tv
- Size: 481 KB
- Stars: 23
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🕹 Parallax Controller
[](https://www.npmjs.com/package/parallax-controller)
[](https://www.npmjs.com/package/parallax-controller)
[](https://codecov.io/gh/jscottsmith/parallax-controller)[](https://github.com/jscottsmith/parallax-controller/actions/workflows/main.yml)
[](https://github.com/jscottsmith/parallax-controller/actions/workflows/size.yml)
[](https://github.com/jscottsmith/parallax-controller/actions/workflows/coverage.yml)Core classes and controller for creating parallax scrolling effects. Designed to provide scroll based animations for elements relative to the view. Built for performance by caching important attributes that cause reflow and layout when accessing.
## NPM Package
Via Yarn
```bash
yarn add parallax-controller
```or NPM
```bash
npm install parallax-controller
```## Documentation
[API and Usage docs](https://parallax-controller.vercel.app/docs/intro)
## React Integration
If you're building with React use `react-scroll-parallax`, a set of hooks and components to easily create effects and interact with the `parallax-controller`.
```bash
yarn add react-scroll-parallax
```See the [React Scroll Parallax documentation](https://react-scroll-parallax.damnthat.tv/) for usage and demos.
## Demos
This package was created for [react-scroll-parallax](https://github.com/jscottsmith/react-scroll-parallax), but can be used as a standalone lib. Most demos were built with `react-scroll-parallax`.
- [React Scroll Parallax V3 Doc Site](https://react-scroll-parallax-docs.netlify.app/)
- [React Scroll Parallax V3 Storybook](https://react-scroll-parallax-v3.surge.sh/)