catonthecouchproductions
asked on
UI slider - jquery - smoothing out - working with opacity
I am working on my site here: http://www.ryancoughlin.com/ and if you see at the bottom the slider, i am using a part of the UI jQuery docs here for it: http://docs.jquery.com/UI/Slider
I am using it to change the opacity of the content up top (if you click the + sign you will see what I mean, then play with the slider)
Right now it is very rough in changing, if you go to the end or the beginning. As in if you go all the way to the end it goes the light gray, where it should be black.
I am trying to find a way to smooth it out. Right now in my CSS I have:
#panel_contents {
background: black;
filter:alpha(opacity=85);
-moz-opacity:0.85;
-khtml-opacity: 0.85;
opacity: 0.85;
height: 100%;
width: 100%;
position: absolute;
z-index: -1;
}
That contains the styles for the box that slides down. And I am just adjusting:
-moz-opacity:0.85;
Should I do all of the others as well? My jQuery is here for the slider:
http://pastie.org/287878
Any ideas on what I can do?
Thanks,
Ryan
I am using it to change the opacity of the content up top (if you click the + sign you will see what I mean, then play with the slider)
Right now it is very rough in changing, if you go to the end or the beginning. As in if you go all the way to the end it goes the light gray, where it should be black.
I am trying to find a way to smooth it out. Right now in my CSS I have:
#panel_contents {
background: black;
filter:alpha(opacity=85);
-moz-opacity:0.85;
-khtml-opacity: 0.85;
opacity: 0.85;
height: 100%;
width: 100%;
position: absolute;
z-index: -1;
}
That contains the styles for the box that slides down. And I am just adjusting:
-moz-opacity:0.85;
Should I do all of the others as well? My jQuery is here for the slider:
http://pastie.org/287878
Any ideas on what I can do?
Thanks,
Ryan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So changing the minValue to min and adding in the math you put it, fixed it up?
Thank you for your help!
Ryan
Thank you for your help!
Ryan
So, at the end of the slider, it becomes .100 (which is why it is white).
It is no longer minValue and maxValue, but min and max.
Open in new window