FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript-basic-projects/10-scroll/setup/app.js at master · MaxCodeXTC/javascript-basic-projects · GitHub
MaxCodeXTC
javascript-basic-projects
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript-basic-projects
/
10-scroll
/
setup
/
app.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (9 loc) · 571 Bytes
Breadcrumbs
javascript-basic-projects
/
10-scroll
/
setup
/
app.js
Copy path
File metadata and controls
13 lines (9 loc) · 571 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
// Element.getBoundingClientRect() method returns the size of an element and its position relative to the viewport.
// pageYOffset is a read - only window property that returns the number of pixels the document has been scrolled vertically.
// slice extracts a section of a string without modifying original string
//offsetTop - A Number, representing the top position of the element, in pixels
// ********** set date ************
// ********** close links ************
// ********** fixed navbar ************
// ********** smooth scroll ************
// select links
Back
|
FazBrowse Home
|
New Git URL