# Sliders

Any time you have free variables in an expression, the calculator will offer to let you define them with sliders. You will see the option to add sliders appear in the expression bar once you finish typing in your equation. You can also use the same variables in several expressions to plot curves that will change together.

In this example, the value of c defines two parallel lines that move up and down together.

In this example, the two lines stay perpendicular to each other for any value of m.

To adjust the limits and interval of your slider, click either of the values at the ends of the slider bar. Input your values and click "set" to complete the adjustment. Try the sliders tour in the help menu to try creating sliders in the calculator: 4 out of 7 found this helpful
Have more questions? Submit a request

• Beth Hentges

How to change a slider to a fixed constant?

• Nerdleking

if you have variable a which equals 2, and you want to get rid of play button, just change it from a=2 to a=2+0x. That is basically tricking it because it has x in the equation, even though x does nothing.

• 23jnpatterson

Keybaord

• Hartk

Is there a way to create a table given the slider values and show the slider values in the equation?  I'd love to have students see how the equation changes when the values for the variables change too :)

• KYI PHYU SIN

Is there a way to move the points from right to left? Now, the only options are from left to right and "back and forth". How can I move the slide from right to left?

• Bruce Bartlett

It would be useful to be able to advance the slider one unit to the left or right using the keyboard (not just the mouse, which can be inaccurate).

• Bruce Bartlett

For later reference: this can be done by clicking on the slider cell, then clicking "tab" twice, then using the arrow keys.

• Erik Lokensgard

Is there a way to nest sliders, or set up a hierarchy? Maybe that's not the right wording. Is there a way to make a slider so that it will advance by 1, and a nested/child slider gets activated to run through its whole range from least to greatest, then the parent slider will advance by another 1, then the nested/child slider resets to the beginning, goes through its range from least to greatest, and so on and so forth?

• Dean Hartwig

How do you play multiple sliders at the same time

• Alexander Jones

## How to use custom slider speeds

We can use some console manipulation to change the slider speed (or more specifically, period) to whatever value we want.

1. Open the desmos graph with the slider you want to change in a browser that has a console (e.g. Chrome, Firefox)

2. Open the console ( Ctrl + Shift + J in Chrome ).

3. Paste the following expression:

```state = Calc.getState()
state["expressions"]["list"][n].slider.animationPeriod = milliseconds
Calc.setState(state)```

4. Replace n with the index of the slider you want to change (since arrays start at 0, this is the number in the top left of the expression minus one).

5. Replace millliseconds with your desired animation period in milliseconds (default is 4s = 4000ms).

6. Press Enter.

Note: The shortest native period is 0.2s = 200ms and the longest is 1.5min = 180000ms.

• 孙彬然
• Efrem Negash

Hi do you make a dot move along a certain graph....to demonstrate right and left hand limits in calculus? I tried the slider but I am not getting it right?