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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:05:12+00:00 2026-06-06T10:05:12+00:00

I have an SVG slider that I’ve been working on … please see it

  • 0

I have an SVG slider that I’ve been working on … please see it on jsFiddle here.
I would like to limit the range of my sliders.

My JS started out as found on this picker (thanks to @Phrogz), then I poked and prodded at it until I was able to strip it down to its current state.
The sliders are working great, but I can really use some guidance on adding the limitations.

For example, I’d like slider_1 (the slider on the left) to be limited to the area in front of the blue rectangle.
JS is still pretty unnatural for me, so I’d appreciate any and all feedback.

Thanks-a-bunch.

  • 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-06T10:05:14+00:00Added an answer on June 6, 2026 at 10:05 am

    Try throwing something like this into your move functions:

    var limitLower = 0;
    var limitUpper = 20;
    if ( x < limitLower || x > limitUpper ) {
        return;
    }
    

    Here’s a fiddle with the above code inserted for slider1: http://jsfiddle.net/ucnyz/4/

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

Sidebar

Related Questions

I have some SVG files that I'd like to create a PDF with. For
I have an SVG file that contains several elements (like path, circles, rectangles, etc.).
I have an inline SVG with in an HTML5 document, and would like to
I have a huge SVG file inside a DIV. I would like to scroll
I have an SVG document, and I would like to include an external svg
I have a svg file that looks like this <?xml version=1.0 encoding=utf-8?> <svg version=1.1
I have twelve svg paths. All of which have 100% opacity. I would like
I have a SVG file that I want to extend by adding onclick handlers
I have the following SVG source code that generates a number of boxes with
I have a .svg file that has the following code: <svg version=1.1 x=0 y=0

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.