Attempting to make a generalized css modification for a webpage element that looks like
<button data-action="link" class="cardImageContainer coveredImage cardContent itemAction lazy lazy-image-fadein-fast" data-blurhash="long string that IDK if is identifying or not" aria-label="sample_video" style="background-image: url("http://localhost:8096/Items/7215c9b47ed950ddeb42219e4b4091a1/Images/Primary?);"></button>
The Program allows for css customization, and the following works so long as I manually type in that long string(dataset:id) in the url part.
.card:hover .cardImageContainer,
.card.show-animation:focus .cardImageContainer {
background-image: url("/Items/ that long id /Images/Logo?") !important;
the long id is viewable via inspect element under dataset: DOMStringMap id:
Is there a way to pull that into the url for the hover background image url.
full disclosure my knowledge of css + (im assuming its js) is limited
.card:hover .cardImageContainer,
.card.show-animation:focus .cardImageContainer {
background-image: url("/Items/dataset:id/Images/Logo?") !important;