ckirknielsen’s avatarckirknielsen’s Twitter Archive—№ 1,370

  1. CSSunday demo! Add a hover effect on an image only when the card links are hovered: codepen.io/chriskirknielsen/pen/dymKoVV?editors=1100 I wanted to reach for :has() but to keep things more compatible, I've come up with a workaround cancelling pointer events on the card and restoring them on links.
    OpenGraph image for codepen.io/chriskirknielsen/pen/dymKoVV?editors=1100
    1. …in reply to @ckirknielsen
      This is just a lil' CSS trick, and usually you want the whole card to be clickable, but in my case the list also has links so this is a good compromise — anyways, have a nice weekend!