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 872063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:43:46+00:00 2026-05-15T10:43:46+00:00

I want to make a gallery which scrolls left and right depending on the

  • 0

I want to make a gallery which scrolls left and right depending on the mouse position. So you move the mouse right and the gallery scrolls left sort of thing.

Thanks,

Henry.

  • 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-05-15T10:43:46+00:00Added an answer on May 15, 2026 at 10:43 am

    I think this shouldn’t be too hard. If you set up a scrolling area to contain the image you can move this left and right using function animate. Then you can get the position of the mouse in relation to the div you want to scroll and caluclate how much you want it to move depending on where the mouse is. This doesn’t do what you want but is does something similar:

    $().mousemove( function(e) {
    
        var pos = $("#holder").offset()
        mouseX = e.pageX - pos.left; 
        mouseY = e.pageY - pos.right;
        if(mouseX > 332 || mouseY > 528 || mouseX < 0 || mouseY < 0) return false;
    
        posx = Math.round(mouseX/10)*332;
        posy = Math.round(mouseY/10)*10;
    
    
    
        $("#holder").css({'backgroundPosition': posx+'px 0'});
    
    
    
    
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a gallery with thumbnails and a main picture frame, which
I want to make a little gallery and add next/previous buttons. I managed to
I want to make horizontal gallery to perform custom views: for example a want
I want to make a gallery with previous and next button in my iPhone
I want to make photos gallery like one in this photo: Is there any
I want to make a simple photo gallery function. However, there are some strange
I want to make a javascript image gallery (with 6 thumbnails in a row
I want to make the gallery widget smoother and travel farther down the list
I'm using FancyBox, and I want to make a gallery without thumbnails on the
I want to make a mosaic gallery with pure CSS, but I can't think

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.