You need to find the paragraph-end
element within the current card
so use closest()
to locate the card
then use .find()
to locate the paragraph-end
element
$(this).closest(".card").find(".card-title div a span.paragraph-end").css({
background: "linear-gradient(to right,rgba(255,255,255,0)," + $(this).css("background-color") + ""
});