CSS3 hover transitions

This commit is contained in:
George Michael Brower 2011-01-25 15:24:35 -07:00
parent ad26e4835a
commit 091a01bbaa
2 changed files with 13 additions and 5 deletions

View File

@ -100,8 +100,6 @@ var NumberController = function() {
var dy = py - y;
var newVal = _this.getValue() + dy*step;
_this.updateValue(newVal);
console.log(newVal);
return false;
}

16
gui.css
View File

@ -51,6 +51,15 @@
background-color: #111;
}
.guidat-controller,
.guidat-controller input,
.guidat-slider-bg,
.guidat-slider-fg {
-moz-transition: background-color 0.15s linear;
-webkit-transition: background-color 0.15s linear;
transition: background-color 0.15s linear;
}
.guidat-controller.boolean:hover,
.guidat-controller.function:hover {
background-color: #000;
@ -124,12 +133,13 @@ width: 53%;
}
.guidat-slider-bg:hover {
.guidat-slider-bg:hover,
.guidat-slider-bg.active {
background-color: #444;
}
.guidat-slider-bg:hover
.guidat-slider-fg {
.guidat-slider-bg:hover .guidat-slider-fg,
.guidat-slider-bg.active .guidat-slider-fg {
background-color: #52c8ff;
}