CSS CSS Transitions and Transforms Adding 3D Effects with CSS 3-Dimensional Rotations with rotateZ() and rotate3d()

paul oram
paul oram
3,429 Points

When the panels flip over to side-b I tried to make the button change color on hover, but this doesn't work -any reason?

.button { transition: background 1s ease-out; }

.button:hover { background: red; }

1 Answer

Steve Gallant
Steve Gallant
14,874 Points

Hi Paul, The .button and .button:hover are targeted up at the top of the interactions.css file. When I changed the background value for .button:hover to red, it works fine. Maybe posting your complete code will help...

Steve