<div class="projects-list home-1">
<article class="whispers">
<h1>Whispers</h1>
<figure>
<a href="/projects/whispers.html">
<img src="assets/media/images/whispers.jpg"alt=""
</a>
</figure>
</article>
<article>
<h1>Victoria</h1>
<figure>
<a href="projects/after-august.html">
<img src="assets/media/images/victoria.jpg"alt=""
</a>
</figure>
</article>
<article>
<h1>for sasha</h1>
<figure>
<a href="projects/for-sasha.html">
<img src="assets/media/images/fosasha.jpg"alt=""
</a>
</figure>
</article>
<article>
<h1>old and blue</h1>
<figure>
<a href="projects/old-and-blue.html">
<imgsrc="assets/media/images/oldandblue.jpg"alt="">
</a>
</figure>
</article>
<article>
<h1>offf barcelona</h1>
<figure>
<a href="projects/offf-barcelona.html">
<img src="/assets/media/images/offf-barcelona.jpg" alt="">
</a>
</figure>
</article>
</div>
Now I want to change the body tag background to a different color on hover on any of those images like for example for the first image makes the background black an the second makes it red etc..
So my question is: Is there is any way to select another element on CSS on hover?
For example:
article:hover { here i want to say like body: background = 'whatever' }
Just like how we change things in JS. I made it in JS, but I feel like there must be an easier CSS way