Home › Forums › CSS › two section button › Reply To: two section button
September 29, 2016 at 10:19 pm
#246033
Beverleyh
Participant
however, i cannot select the second icon and update the first
You can’t do that with CSS because there isn’t a selector that looks backward to target elements earlier in the DOM. CSS selectors can only look forwards.
Maybe you could use a semi-transparent pseudo element on the 2nd button that’s positioned over the first to give the illusion that the first is being faded? Or use JavaScript to target the first button.
I’m on mobile so can’t demo anything but at least that gives you a few ideas to play with.