Lovelace picture-elements card, custom-card

Hi, working on a picture-elements card and as far as I can understand it should work with custom-cards aswell but how?

What I would like to do is to make an state-icon and when taping it, it should open a popup-card (https://github.com/thomasloven/lovelace-popup-card), is it possible?