electerious / electerious/basicScroll

Set scrolling element to something other than the window

Open
#67 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.6k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

Hello everyone!
Is there a way to change what the scrolling container is from the default (window)?

The main use case I see is a website where the view is wrapped in a scrolling div (and so, the window/document isn't scrolling).
In my case, I'm doing this to have a css `perspective` on the scrolling div but still being able to have a `position: fixed;` background below.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named in the issue. Start by tracing how basicScroll reads and listens to the window scroll position, then check how a scrolling div could be supplied instead. Done means parallax updates work when a div scrolls while the window remains stationary, including the reported perspective and fixed-background use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.