// if you are using class then add `.` before btn btn NO! || .btn YES !! { transition-property: background-color; transition-duration: 0.5s; } btn:hover NO! || .btn:hover YES !! { background-color: blue; color: white; }