I have a dial that moves automatically, and I would like to figure out a way to have it move only when the mouse hovers over the div. I have read that it may not be possible to do this in javascript, but I am hoping some one here might have a solution.
Here is what I have so far. https://jsfiddle.net/r0w71wkv/
#logo {
display: inline-block;
position: relative;
}
#logo .speedometer {
width: 80px;
height: 80px;
}
#logo .needle {
width: 5px;
height: 80px;
background: #324A90;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-top-left-radius: 100%;
border-top-right-radius: 100%;
display: inline-block;
left: 110px;
position: absolute;
top: 10px;
-webkit-animation:move 5s infinite;
transform:rotate(0deg);
transform-origin:bottom;
}
@-webkit-keyframes move {
0% {
transform:rotate(-180deg);
}
50% {
transform:rotate(90deg);
}
100% {
transform:rotate(-180deg);
}
}