img:hover /*What should I put here ?*/{
filter: contrast(0.7) blur(1px) grayscale(0);
}
<figure>
<img src="https://upload.wikimedia.org/wikipedia/commons/1/1f/Mathematics.jpg" alt="Mathématiques">
<p class="pimg">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
<figcaption>Maths</figcaption>
</figure>
I have a picture and then a paragraph. If I touch the paragrapg (p:hover), I want the image (before the paragraph) to change any of its proprieties. How can I do that ? (Sorry for my bad english.)
If you want to know what I tried, I wanted to put two pseudo-classes (:hover and :nth-child) but it doesn't work.