Let's cut to the chase.
I have 4 elements named background-1, background-2, background-3, and background-4.
Upon landing on the page, I want Background-1 to have a "background-color: #D8D7D8;" while the other three should be "background-color: #FBFBFB;".
Then, whenever I hover over any background-x element, I want all of them to change to #FBFBFB except the one being hovered over, which should turn to #D8D7D8.
I'm sure this is easy for you, but it's a bit tricky for me haha.
This is how my CSS code looks like:
.background-1 :hover{
background: #D8D7D8;
transition: .3s ease-in-out;
}
.background-2 :hover{
background: #D8D7D8;
transition: .3s ease-in-out;
}
.background-3 :hover{
background: #D8D7D8;
transition: .3s ease-in-out;
}
.background-4 :hover{
background: #D8D7D8;
transition: .3s ease-in-out;
}
Check out how it looks like here: Imgur
Thank you in advance!
Milack