I would like to select the hour-hand
, min-hand
and second-hand
parts of the 'hand' class. I am trying to enter in .hand hour-hand
into CSS but it doesn't select it.
Essentially I want to make the second-hand
red instead of black, but right now the only class in CSS is the following:
.hand {
width: 50%;
height: 6px;
background: black;
position: absolute;
top: 50%;
transform-origin: 100%;
transform: rotate(90deg);
transition: all 0.05s;
transition-timing-function: ease-in-out;
}
<div class="clock">
<div class="clock-face">
<div class="hand hour-hand"></div>
<div class="hand min-hand"></div>
<div class="hand second-hand"></div>
</div>
</div>
Can I create a separate class for the second hand in this case?