Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7804685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:59:48+00:00 2026-06-02T01:59:48+00:00

Im working on a parallax site that is pretty long (like 12k pixels). I

  • 0

Im working on a parallax site that is pretty long (like 12k pixels). I want to create a list of scrollpoints, which i think would improve user experience.

What i think i need to do:
1) create an array that would consist of scrollpoints, for example 0px 850px 1300px 2000px 2500px (as it would be easy enough so i could understand 🙂
2) on keydown keyCode == 37 move (animate) to the previous point, on keyCode == 39 or keyCode == 32 move to the next point
3) if its first scroll point, dont go to the previous one as it doesnt exist, same with last scroll point

Could anyone tutor me a bit how to write the code? It’s the first time i gonna use javascript/jquery (or programming at all)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:59:50+00:00Added an answer on June 2, 2026 at 1:59 am

    No plugin required, though you may need to modify the following code to work with input fields where you want to be able to use arrow navigation as well.

    http://jsfiddle.net/lazerblade01/EDwbg/1/

    You can convert the scrolltops to animations easily enough as well.

    EDIT: Added animation to scroll.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a website on which we have use parallax effect. In
Working with stl:list and stl::vector types under interrupt handlers I want to avoid malloc()
working on xcode I realized that if I create a non-void method, I call
Working in D3.js, I'd like to select all the elements that match a selector
I'am trying to build left/right movement into a parallax scrolling site. Everything is working
I'm trying to create my own custom parallax plugin so that I am able
Working with an undisclosed API, I found a function that can set the number
I'm working on a game with finding objects on the screen which has also
Working with a Lucene index, I have a standard document format that looks something
Working in Visual Studio 2008 (C#)... I use a List collection to store instances

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.